Computer Science, asked by tiara5, 1 year ago

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'
tiara5: yes sry
Rashi937: It's k

Answers

Answered by Rashi937
1
The loop will run four times.
Output-
Computer 148
Computer145
Computer 142
Computer139
136

Hope it helps you...

tiara5: tysm
Rashi937: Wc
Rashi937: Pls choose my ans as brainiest
tiara5: sure
Rashi937: Thanx
Similar questions