The C - Tree
A hub of C, C++ and C# programming Stuff.
Pages
Home
What is C#?
C & C++
Books and Training
About Me
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();
}
Newer Post
Older Post
Home