18. Find the outut of the following coe fragmnts ?
(a) int s = 14;
if (s <20)
System.out.print("x");
else
System.out.print("y");
System.out.println("t");
Answers
Answered by
1
Answer:
x
t
Explanation:
As s <20 hence x will be printed
then the else statement won't work.
The statement next to the argument of else will run as it's not added in the else part
Similar questions