Computer Science, asked by rp869546, 11 months ago

No spammers please do it clear (show your work also) and how the answer comes please...
int m=2 and int n=15
for(int i=1;i<5;i++)
m++;--n;
System.out.println("m="+m);
System.out.println("n="+n);

Answers

Answered by blackpinf4ever
1

The output will be, m=6, n=14 Since there is no braces given for the loop, it means only m++ is the part of the loop.

Similar questions