PREDICT THE OUTPUT
int m= 20; n = 25;
for(int i=1;i<5;i++)
m++;
--n;
system.out.println("m=",+m);
system.out.println("n="+n);
Answers
Answered by
4
m=24
n=24
the loop will run 4 times and as there are no braces in loop only 1 condition will execute 4 times (m++) and condition of n-- will execute when control will come out of loop
hope this helps .........
plz mark brainliest ...
n=24
the loop will run 4 times and as there are no braces in loop only 1 condition will execute 4 times (m++) and condition of n-- will execute when control will come out of loop
hope this helps .........
plz mark brainliest ...
rajath888:
i have sme 5 question
Similar questions