#include #include
void gcd(int,int); void main() { int a,b,t; clrscr(); printf("\nEnter two numbers : "); scanf("%d%d",&a,&b); if(a { t=a; a=b; b=t; } gcd(a,b); } void gcd(int a,int b) { int c; c=a%b; if(c!=0) gcd(b,c); else { printf("\nThe gcd = %d",b); getch(); } }
AttachmentsH.C.F (2156-121154-GCD.C)
|
No feedbacks found. Be the first to respond and make money from revenue sharing program.
|