Computer Science, asked by liza1050, 12 days ago

e) what will be the result of following program segment? int a=2 b=10;
for(int i=1;i<5;i++)
{
a++;--b;
}
system.out.print( "a is "+a);
system.out.print( "b is "+b) ;​

Answers

Answered by ItzMeSam35
2

Output Of The Segment :

a is 6

b is 6

Similar questions