下列程序段中,循环体被执行的次数是()
int t=81, v=9; while( t%v==0) printf(″%c\n″,"*");
B、1
C、9
D、无限
【正确答案】:D
【题目解析】:81%9=0,没有余数,会一直输出,无限循环。
下列程序段中,循环体被执行的次数是() int t=81, v=9; while( t%v==0) printf(″%c\n″,
- 2024-08-04 10:44:13
- 高级语言程序设计(一)(00342)