変数a,b,c,nはint型で,a=3,b=5である.次のifの実行後,変数nはいくつか.
1)if(a>3) {
c=a+b;
n=c+1;
}
else {
n=1;
}
2)if(a!=4) {
c=b;
n=c-a;
}
else {
c=b+1;
n=2*c;
}
3)if(a+b>=7) {
c=6;
n=2*c-a;
}
else n=1;
4)if(b==8) n=a;
else {
c=b*2;
n=c-a;
}
5)if(b!=5) n=a;
else n=a;
6)if(a<=3) {
c=a+b;
n=c+1;
}
else n=4;
7)if(a==3) n=b; else n=a;
8)if(a==4) n=b; else {c=a+1; n=c*2;}
9)if(a<=4) {
n=b;
}
else {
c=a+1;
n=c*2;
}
10)if(b-a>3) {
c=2*a;
n=c*3;
}
else {
n=(a+b)/2;
}