下面程序的功能是:输出100以内能被3整除且个位数为6的所有整数,请填空。#includevoidmain(){inti,j;for(i=0;______;i++){j=i*10+6;if(_______)continue;printf("%d",j);}}
A. i<=10j%3!=0
B. i<10j/3
C. i<10j%3!=0
D. i<=9i%3
查看答案
运行以下程序后,如果从键盘上输入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.