题目内容

写出下列程序的执行结果是:__________________。 #includeusing namespace std; void main() { int i = 1 , j = 5; do { i++; j--; if ( i>3 ) break; } while ( j>0 ); cout << "i=" << i <<","<< "j=" << j << endl; }

查看答案
更多问题

写出下列程序的执行结果是:__________________。 #includeusing namespace std; void main() { int i = 1; while( i<=10 ) if( ++i % 3 != 1 ) continue; else { cout << i; if(i!=10) cout<<","; } }

写出下列程序的执行结果是:__________________。 #includeusing namespace std; void main() { int a,b,c,d,x; a = c = 0; b = 1; d = 50; if( a ) d = d-10; else if( !b ) if( !c ) x = 15; else x = 25; cout << d << endl; }

#include using namespace std;void main(){ int a,b,c,temp,min;cout << "please input a,b,c:"; cin >> a >> b >> c; temp = ( a

#includeusing namespace std; void main() { double x,y,b; cout << "please input x y:"; cin >> x >> y; b = ( -2<=x ) && ( x<=2 ) && ( -2<=y ) && ( y<=2 ); cout << b << endl; } 以上程序运行时输入1 1,如下: please input x y:1 1 则程序的执行结果是:__________________。

答案查题题库