#include<stdio.h>
void main()
{
int m,n,r;
printf("Please Enter m,n:");
scanf("%d%d",&m,&n);
printf("m=%d,n=%d\n",m,n);
r=m%n;
while(r!=0)
{
m=n;
n=r;
r=m%n;
}
printf("H.C.F=%d\n",n);
}
#include<stdio.h>
void main()
{
int m,n,r;
printf("Please Enter m,n:");
scanf("%d%d",&m,&n);
printf("m=%d,n=%d\n",m,n);
r=m%n;
while(r!=0)
{
m=n;
n=r;
r=m%n;
}
printf("H.C.F=%d\n",n);
}