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