Computer Science, asked by Chitrali1777, 11 months ago

Write a program in prolog to find gcd of two number

Answers

Answered by gauravsharmatech
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