Monday, July 17, 2023

1. Write a prolog program to calculate the sum of two numbers.

1. Write a prolog program to calculate the sum of two numbers. 

sum(X,Y):-S is X+Y,write(S).


OUTPUT:

No comments:

Post a Comment