state the output of the program snippet given below:
int a=10 , b=12;
if (a>=10)
a++;
else
++b;
System.out.printn("a="+a+"and b= "+b);
PLEASE ANSWER IT FASTTT !!
Answers
Answered by
0
Answer:
a 10
Explanation:
because a is greater than equal to 10
Answered by
0
Answer:
A = 11
a= 11 and b= 12
Explanation:
As a is equal to 10, a++ will be executed and the value of a will be incremented to 11 and b will remain the same.
Similar questions