اینم از bmm,kmm ]چاکر شماdr.mahmodi7171@yahoo.com
#include<stdio.h>
#include<conio.h>
main()
{int a,b,c,d;
printf("enter two number tabiei ke [a>b]");
printf("\nenter a:");
scanf("%d",&a);
printf("\nenter b:");
scanf("%d",&b);
d=a*b;
if(a>b)
{
while(a%b>0)
{
c=(a-((a/b)*b));
a=b;
b=c;
}
printf("BMM=%d",b);
printf("\nKMM=%d",d/b);
}
else
printf("a&b RA JA BE JA KONID");
getche();
}
#include<stdio.h>
#include<conio.h>
main()
{int a,b,c,d;
printf("enter two number tabiei ke [a>b]");
printf("\nenter a:");
scanf("%d",&a);
printf("\nenter b:");
scanf("%d",&b);
d=a*b;
if(a>b)
{
while(a%b>0)
{
c=(a-((a/b)*b));
a=b;
b=c;
}
printf("BMM=%d",b);
printf("\nKMM=%d",d/b);
}
else
printf("a&b RA JA BE JA KONID");
getche();
}