Write a program in prolog to find gcd of two number
Answers
Answered by
2
Explanation:
To find the GCD of two numbers in PROLOG. gcd(X,Y):-X=Y,write('GCD of two numbers is '),write(X); X=0,write('GCD of two numbers is '),write(Y); Y=0,write('GCD of two numbers is '),write(X);
hope you get it
...
Similar questions
Biology,
5 months ago
Accountancy,
5 months ago
History,
5 months ago
Social Sciences,
10 months ago
Math,
1 year ago
Math,
1 year ago