皮皮学,免费搜题
登录
搜题
【单选题】
当输入数据:27 63 时,下面程序的运行结果是( )。 #include int gbs(int a, int b) { int c; a=a>0?a:-a; b=b>0?b:-b; c=a*b; if (c==0) return 0; while (a!=b) if (a>b) a-=b; else b-=a; return c/a; } int gys(int a, int b) { if (a*b==0) return 0; a=a>0?a:-a; b=b>0?b:-b; while (a!=b) if (a>b) a-=b; else b-=a; return a; } void main() { int a,b,c,d; scanf("%d%d",&a,&b); c=gbs(a,b); d=gys(a,b); printf("a=%d b=%d gbs=%d gys=%d\n",a,b,c,d); }
A.
4
B.
a=30 b=63 gbs=189 gys=9
C.
a=27 b=63 gbs=190 gys=10
D.
a=27 b=63 gbs=189 gys=9
E.
a=27 b=63 gbs=188 gys=10
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】下列哪种疾病属于病毒性疾病( )。
A.
鲤痘疮病
B.
白皮病
C.
竖鳞病
D.
疖疮病
【单选题】—____ is Qi Baishi? —A famous Chinese painter. He is ____ his great Chinese painting. [     ]
A.
 How, famous as
B.
 What, famous with
C.
 Who, famous for
D.
 Who, famous in
【简答题】If you are asked to name some national emblems of China, the dragon will probably be one of the famous images that pop into your head. We Chinese often consider ourselves 'the descendants(后代)of the dr...
【单选题】材料题请点击右侧查看材料问题 查看材料
A.
rich
B.
poor
C.
famous
D.
good
【判断题】“G90 G94 G40 G80 G17 G21 G54; ” 指令中出现了多个 G代码,因此该程序段不是一个规范的程序段。
A.
正确
B.
错误
【单选题】下列哪种疾病属于病毒性皮肤病
A.
梅毒
B.
尖锐湿疣
C.
花斑糠疹
D.
天疱疮
【单选题】下列哪种疾病属于病毒性传染病(  )
A.
血吸虫病
B.
淋病
C.
肺结核
D.
艾滋病
【单选题】子产的“铸刑书”的做法是具有哪个学派的色彩?
A.
墨家
B.
道家
C.
儒家
D.
法家
【判断题】“G90 G94 G40 G80 G17 G21 G54 ;” 该指令中出现了多个 G代码 ,因此该程序段不是一个规范正确的程序段。
A.
正确
B.
错误
【单选题】The main purpose of announcing the above events is to give information about ______.
A.
famous directors
B.
Chinese prize winners
C.
things to do in spare time
D.
prices to pay for the performances
相关题目: