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
2
Output Of The Segment :
a is 6
b is 6
Similar questions