You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
161 B
17 lines
161 B
12 months ago
|
// test if-else
|
||
|
int ifElse() {
|
||
|
int a;
|
||
|
a = 5;
|
||
|
if (a == 5) {
|
||
|
a = 25;
|
||
|
} else {
|
||
|
a = a * 2;
|
||
|
}
|
||
|
return (a);
|
||
|
}
|
||
|
|
||
|
|
||
|
int main() {
|
||
|
return (ifElse());
|
||
|
}
|