Addition, subtraction, multiplication & division of two numbers using LISP
Write and execute the statements for the following in LISP:
Addition, subtraction, multiplication & division of
two numbers.
(setq no1(read))
12
12
(setq no2(read))
30
30
(+ no1 no2)
42
(- no2 no1)
18
(* no1 no2)
360
(/ no2 no1)
5/2
0 comments: