#include
main(){
int num1,num2,check;
printf("\t\t**********************************************\n");
printf("\t\t\t\tThe G.C.D program.\n");
printf("\t\t**********************************************\n");
printf("\t\t\tEnter two positive intergers: ");
scanf("%d %d",&num1,&num2);/*8,4*/
if(num1
}else{
check=num2;/*check=4*/
}
while(((num1%check)!=0)||((num2%check)!=0)){/*ทำการวนลูป*/
check=check-1;
}
printf("\t\t**********************************************\n");
printf("\t\t\t\tThe G.C.D of %d and %d is %d\n",num1,num2,check);
printf("\t\t**********************************************\n");
}