[SOLVED] CS (define pi 3.141592653589)

$25

File Name: CS_(define_pi_3.141592653589).zip
File Size: 273.18 KB

5/5 - (1 vote)

(define pi 3.141592653589)

;doesnt matter how pi is defined
(define pi (/ 355 113.0))
(define pi (/ 22.0 7))

(define radius 10)
(define circumference (* 2 pi radius))

(define height 20)
(define areaCylinder1 (+ (* circumference height) (* 2 pi (* radius radius))))
(define areaCylinder2 (+ (* (* 2 (/ 22.0 7) 10) 20) (* 2 (/ 22.0 7) (* 10 10))))

(define a hello
)
(define b world)
(display a)(display b)
;(< a b)(newline)(display (+ 7 4))(define userInput (read))

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS (define pi 3.141592653589)
$25