题目内容

运行以下程序后,如果从键盘上输入12,8<回车>,则输出结果为()。#includevoidmain(){inta,b,n1,n2,t;scanf("%d,%d",&n1,&n2);if(n1>n2){t=n1;n1=n2;n2=t; }a=n1;b=n2;while(b!=0){t=a%b; a=b; b=t;}printf("%d,%d\n", a, n1*n2/a);}

A. 2,6
B. 4,24
C. 4,12
D. 8,96

查看答案
更多问题

Question 1

A. Working.
B. Shopping.
Chatting.
D. Playing games.

Question 2

A. Because she can't speak any foreign language.
Because she is busy.
C. Because she thinks it's a waste of time.
D. Because her husband doesn't allow her to do that.

Question 3

A. People in his city.
B. People in his country.
C. People in another country.
D. People around the world.

Question 4

A. By learning a new language.
By relying on the computer translation.
C. With the help of his friends.
D. By drawing pictures.

答案查题题库