3个回答
展开全部
main()
{int a,b,c;
printf("Enter First Num:");
scanf("%d",&a);
printf("Enter Second NUM:");
scanf("%d",&b);
EXEC: if(a==b) goto OUTPUT;
if(a<b){c=a;a=b;b=c;}
a=a-b;
goto EXEC;
OUTPUT:printf("The GCD of these two");
printf("The Num is %d\n",a);
}
我来帮他解答图片符号编号排版地图您还可以输入9999 个字您提交的参考资料超过50字,请删除参考资料:匿名提交回答
2011-4-14 09:07满意回答#include <stdio.h>
int main(void)
{
int a=0,b=0,c=0;
printf("Enter First Num:");
scanf("%d",&a);
printf("Enter Second NUM:");
scanf("%d",&b);
while (a!=b)
{
if (a>b)
{
a=a-b;
}
else
{
b=b-a;
}
}
printf("The GCD of these two is %d\n",a);
return 0;
{int a,b,c;
printf("Enter First Num:");
scanf("%d",&a);
printf("Enter Second NUM:");
scanf("%d",&b);
EXEC: if(a==b) goto OUTPUT;
if(a<b){c=a;a=b;b=c;}
a=a-b;
goto EXEC;
OUTPUT:printf("The GCD of these two");
printf("The Num is %d\n",a);
}
我来帮他解答图片符号编号排版地图您还可以输入9999 个字您提交的参考资料超过50字,请删除参考资料:匿名提交回答
2011-4-14 09:07满意回答#include <stdio.h>
int main(void)
{
int a=0,b=0,c=0;
printf("Enter First Num:");
scanf("%d",&a);
printf("Enter Second NUM:");
scanf("%d",&b);
while (a!=b)
{
if (a>b)
{
a=a-b;
}
else
{
b=b-a;
}
}
printf("The GCD of these two is %d\n",a);
return 0;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询