LISP program for the arithmetic operations using the case statements
kw.lisp
Output
kodingwindow@kw:~$ clisp kw.lisp ——————————————————————————————————————————— Program to perform the arithmetic operations ——————————————————————————————————————————— 1.Addition 2.Subtraction 3.Multiplication 4.Division ——————————————————————————————————————————— Enter your choice 4 Enter the 1st number 1 Enter the 2nd number 0 *** - /: division by zero kodingwindow@kw:~$
What Next?
LISP Loops
Advertisement