网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

( 19 )有如下程序段:

int i=5;

while ( int i=0 ) {cout 《 '*';i--;}

运行时输出 "*" 的个数是

A ) 0

B ) 1

C ) 5

D )无穷


参考答案

更多 “ ( 19 )有如下程序段:int i=5;while ( int i=0 ) {cout 《 '*';i--;}运行时输出 "*" 的个数是A ) 0B ) 1C ) 5D )无穷 ” 相关考题
考题 ( 19 )有如下程序段:int i=1;while (1) {i++;if(i == 10) break;if(i%2 == 0) cout '*';}执行这个程序段输出字符 * 的个数是A ) 10B ) 3C ) 4D ) 5

考题 有以下程序: 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=1:while(1){i++;if(i==210) break;if(i%2==0) cout‘*’;}执行这个程序段输出字符*的个数是A.10B.3C.4D.5

考题 有如下程序段: inti=1: while(1){ i++: if(i==10)break: if(i%2==0)cout*: } 执行这个程序段输出字符*的个数是( )。A.10B.3C.4D.5

考题 有如下程序段:int i=5;while(int i=0){cout‘*’;i--;}运行时输出“*”的个数是A.0B.1C.5D.无穷

考题 有如下程序段: inti=1: while(1){ i++: if(i==10)break: if(i%2==0)cout'*': } 执行这个程序段输出字符*的个数是( )。A.10B.3C.4D.5

考题 有如下程序段: int i=1; while (1) { i++; if(i == 10) break; if(i%2 == 0) cout << '*'; } 执行这个程序段输出字符*的个数是?A.10B.3C.4D.5

考题 有如下程序段: int i=5; while (int i=0){ cout<<'*'; i--; } 运行时输出"*"的个数是()。A.0B.1C.5D.无穷

考题 有如下程序段: int i=5; while (int i=0){ cout<<'*'; i--; } 运行时输出"*"的个数是()。A.1B.0C.无穷D.5