Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
#include <stdio.h>
int main ()
{
int ggd();
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d %d %d\n", a, b, ggd(a, b));
}
int ggd(a,b) int a,b ;
{ printf("%d, %d\n", a, b);
return b==0 ? a : ggd(b,a%b); }
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more