#claas Output1
{
static void main()
{
int a=5,b=6,c;
c=a+b%2;
b=a+2*c;
system.out.println(c);
system.out.println(b);
}
}
find the output
Answers
Answered by
14
c=5+6%2
=11%2
=1
b=a+2×c
=5+2×1
=10
so the output will be:
1
10
=11%2
=1
b=a+2×c
=5+2×1
=10
so the output will be:
1
10
Similar questions