Give atleast two examples for each command of LISP
Transcript of Give atleast two examples for each command of LISP
1.Give atleast two examples for each command of LISP.
a. CL-USER 1 > Car
b.CL-USER 1 > Cdr
c.CL-USER 1 > setq
1 | P a g e
x.CL-USER 1 > or
2.Write program in LISP for the following program :
a. To find the average of five numbers.
9 | P a g e
c. To convert the given temperature in Fahrenheit into Celcius.
d. Convert the given hours into minutes and seconds.
11 | P a g e
e. To print your name ,class ,roll no and address.
f. To find the square root of a given no.
12 | P a g e
h. To calculate the area and parameter of rectangle,square and triangle.
i. To calculate area and circumference of circle.
14 | P a g e
m. To find the sum of first n Natural numbers.
n. To find the largest and smallest among three given numbers.
17 | P a g e
o. To check entered year is leap year or not.
p. To exchange the value of two variables.
18 | P a g e