网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有如下程序段:
int i=5;
while(int i=0){cout<<‘*’;i--;}
运行时输出“*”的个数是
A.0
B.1
C.5
D.无穷
参考答案
更多 “ 有如下程序段:int i=5;while(int i=0){cout‘*’;i--;}运行时输出“*”的个数是A.0B.1C.5D.无穷 ” 相关考题
考题
有以下程序: include using namespace std; int f(int); int main() {int i;for(i=0;
有以下程序:include <iostream>using namespace std;int f(int);int main(){int i;for(i=0;i<5;i++)cout<<f(i)<<" ";return 0;}int f(int i){static int k=1;for(;i>0;i--)k+=i;
考题
下列循环语句的循环次数是(). int i=5 ; do{ System. out. println(i--); i-- ; }while(i! =0); A. 0 B. 1 C. 5 D. 无限A.0B.1C.5D.无限
考题
已知:int i=5,下列do-while循环语句的循环次数为()。 do{ printf("%dn",i--); i--; }while(i!=0);A.0B.1C.5D.无限
热门标签
最新试卷