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.
24 lines
252 B
24 lines
252 B
12 months ago
|
int ifWhile() {
|
||
|
int a;
|
||
|
a = 0;
|
||
|
int b;
|
||
|
b = 3;
|
||
|
if (a == 5) {
|
||
|
while(b == 2){
|
||
|
b = b + 2;
|
||
|
}
|
||
|
b = b + 25;
|
||
|
}
|
||
|
else
|
||
|
while (a < 5) {
|
||
|
b = b * 2;
|
||
|
a = a + 1;
|
||
|
}
|
||
|
return (b);
|
||
|
}
|
||
|
|
||
|
|
||
|
int main(){
|
||
|
return (ifWhile());
|
||
|
}
|