int z=148;
while (10>9)
{
if(x <139)
break;
System.out.println("computer" +z);
z=z-3;
} System.out.println(z);
How many times the loop will execute?Anymore
What is the output?
Rashi937:
Shouldn't it be 'z' instead of 'x'
Answers
Answered by
1
The loop will run four times.
Output-
Computer 148
Computer145
Computer 142
Computer139
136
Hope it helps you...
Output-
Computer 148
Computer145
Computer 142
Computer139
136
Hope it helps you...
Similar questions