Advertisements
Advertisements
Question
Find errors in the following snippet:
int a = 5, b = 3;
if (a <= b)
System.out.println(a);
else
System.out.println(c = a + b);
One Line Answer
Solution
Assignment statement can't be used along with the print statement.
shaalaa.com
Is there an error in this question or solution?