main () {int m,n; scanf ("%d%d",&m,&n); while (m!=n) { while(m>n) m-=n; while(n>m) m-=m; }printf("m=%d\n",m)}如果键盘上输入65 14 结果是?

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 02:25:46
main () {int m,n; scanf (n) m-=n; while(n>m) m-=m; }printf("m=%d\n",m)}如果键盘上输入65 14 结果是?" />
x)MST+QɳV(NNKSPRMQMQQQӴV(IUU*p5r퀜\]|u7XL"I Iy:Ovv?|ע-O;6Z x<`˵5b"M_r愧V=[dGӾH1Ov?žg>_ U_\gR0

main () {int m,n; scanf ("%d%d",&m,&n); while (m!=n) { while(m>n) m-=n; while(n>m) m-=m; }printf("m=%d\n",m)}如果键盘上输入65 14 结果是?
main () {int m,n; scanf ("%d%d",&m,&n); while (m!=n) { while(m>n) m-=n; while(n>m) m-=m; }
printf("m=%d\n",m)
}
如果键盘上输入65 14 结果是?

main () {int m,n; scanf ("%d%d",&m,&n); while (m!=n) { while(m>n) m-=n; while(n>m) m-=m; }printf("m=%d\n",m)}如果键盘上输入65 14 结果是?
main () {int m,n;
scanf ("%d%d",&m,&n); m=65 n=14
while (m!=n) 成立
{
while(m>n) 成立
m-=n; m=m-n=51,之后继续while(m>n) m-=n;直到m=8
while(n>m) 成立
m-=m; m=m-m=0,之后继续while(n>m) m-=m;无限循环下去
}
printf("m=%d\n",m)不运行这句
}