| From: jason songhurst (songhurst at yahoo.com) Date: Thu Sep 12 14:16:30 EDT 2002 |
|
Karen North wrote:
> Here is another idea for flexibility:
>
> (define TEST1 10)
>
> ;;areaDisc: number -> number
> (define (areaDisc radius)
> (* radius radius 22/7))
>
> "The area of a disc with a radius of " TEST1 "is" (areaDisc TEST1)
>
> But, how can the result remain on one line?
>
perhaps you want:
(format "The area of a disc with a radius of ~s is ~s"
TEST1 (areaDisc TEST1))
| Posted on the users mailing list. |
|