1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <iostream> #include <cstdio> #include <cstring> using namespace std; int a,x,y,ok1,ok2; int main(){ a=100; x=20; y=20; ok1=5; ok2=0; if((x>y)||((y!=20)&&(ok1==0))&&(ok2!=0)) a=1; else if((ok1!=0)&&(ok2==0)) a=-1; else a=0; cout<<a<<endl; return 0; } |
0 of 4 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1、把02、03行删除,程序可以正常运行。( )
2、将12行删除,输出结果与原来相同。( )
3、程序输出为( )
4、将09行修改为”x=114;”,输出为( )