iForeRunner
 
   
 
  c  
   
   
   
 
  GCD  
 
 



Program to find GCD of 2 numbers




‡include<stdio.h>
main() {
int i,n,r=1; clrscr(); printf("\nEnter the dividend and the divisor"); scanf("%d%d",&n,&i); while(r!=0) { r=n%i; if(r!=0) { n=i; i=r; } } getch(); printf("%d ",i); }

Please send comments to vgdarur.javafive@blogger.com