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,
1 month ago
Physics,
1 month ago
Math,
2 months ago
Computer Science,
2 months ago
Math,
8 months ago
Social Sciences,
8 months ago