write an arithmetic Prolog Program that will add, substract, multiply or divide two numbers.
example:
?- run.
Enter the first number:
Enter the second number:
What would you like to do?
a. Add.
b. Substract.
c. Multiply.
d. Divide.
e. Exit.
Answer a, b, c, d or e:
-
- Posts: 1
- Joined: 3 May 2014 13:25