a=10, b=12; if(a>=10) a++; else ++b; System.out.println("a=" + a + "and b="+ b);
Answers
Answered by
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
Math,
4 months ago
Computer Science,
4 months ago
Math,
10 months ago
Social Sciences,
10 months ago