Computer Science, asked by tanwarpragya5, 6 months ago

Predict the output i=0 while (i>5) ;print(i) i+=1​

Answers

Answered by BrainlyProgrammer
4

Answer:

if it is java extract... then my answer is....

Loop will not work

But the output will be:

0

Explanation:

because there is semicolon after while statement.......and if u have by mistake added semicolon then also I have answer....

Loop will not work at all....therefore no output

Answered by anindyaadhikari13
4

Question ?

Predict the output of the following code.

i=0;

while(i>5);

print(i)

i+=1

Here, loop will not execute because Semicolon is written after while loop. Now, i is printed.

value of i is 0

So,

output:- 0

Output:-

0

Similar questions