写出下列程序的执行结果是:__________________。 #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 则程序的执行结果是:__________________。
#includeusing namespace std; void main() { int x,i,j,k; cout << "please input x:"; cin >> x; i = x/100; j = x/10 %10; k = x%10; cout << k << j << i << endl; } 以上程序运行时输入123,如下: please input x:123 则程序的执行结果是:__________________。
写出下列程序的执行结果是:__________________。#include #includeusing namespace std;void main(){ int a=15; int &ra=a; int *pa=&a; cout<