Computer Science, asked by sunshineeee0905, 1 year ago

Please please solve this fasttt
Int i = 1 ;
while(I++<=1)
{
i++;
System.out.print(I + " ");
}
System.out.print(i);

Answers

Answered by mn121
2

When i=1,

while(i++<=1) is true  (here it becomes i=2 after checking the condition)

in the loop,

i=3

output:3

when i=3,

while(i++<=1) is false   (here it becomes i=4 after checking the condition)

loop terminates.

output: 4

So, the whole output is :

3 4


mn121: please mark it as brainliest...
mn121: ^_^
sunshineeee0905: Thanks ☺️☺️ a lot
sanchari46: Mention noy
sanchari46: *not
mn121: ur wlcm
Similar questions