Computer Science, asked by Ashjin, 2 months ago

a=10, b=12; if(a>=10) a++; else ++b; System.out.println("a=" + a + "and b="+ b);​

Answers

Answered by Oreki
0

Output:

  a=11and b=12

Explanation:

  Given, a = 10 and b = 12, then,

      > As, a >= 10 yields true, so a++.

      > a = 11 and b = 12.

Similar questions