Welcome to W3Courses
 Like Us on Facebook

Cube Function Using Scheme Source Code

The following code finds the cube of a number

 (define cube(lambda(x) (* x (* x x))))

or

 (define cube(lambda(x) (* x x x)))

 

Share