Please please solve this fasttt
Int i = 1 ;
while(I++<=1)
{
i++;
System.out.print(I + " ");
}
System.out.print(i);
Answers
Answered by
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...
Similar questions