sysy-data/functional/sy/23_if_test4.sy

19 lines
211 B
Plaintext
Raw Permalink Normal View History

2024-01-09 19:48:14 +08:00
// test if-{if-else}
int if_ifElse_() {
int a;
a = 5;
int b;
b = 10;
if(a == 5){
if (b == 10)
a = 25;
else
a = a + 15;
}
return (a);
}
int main(){
return (if_ifElse_());
}