While Loop

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
a = 30;
b = 20;
c = 10;
void Generate(){
 while(a <= 90 && b - c >= -80){
  a = a + 1;
 }
}
while(a >= 80){
 a = 0;
 b = b + 4;
 c = c + 7;
 Generate();
}
result = a + b + c;
print(result);

What number which has been printed?

×

Problem Loading...

Note Loading...

Set Loading...