Search (Article Or Program)

18 June 2011

G.C.D program of Two Number (in C)

#include
#include
main()
{
int a,b,r;
scanf("%d %d",&a,&b);
while(b!=0)
{
r=a%b;
a=b;
b=r;
}
printf("%d\n",a);
getch();
}