Problems of java
1. Consider the following code -
if (x == 5)
System.out.println("Five");
else
System.out.println("Eight");
What will be the output of the above code, if
(a) x is 6
(b) x is 8
Answers
Answered by
0
output for a will be eight
output for b will be eight
Answered by
0
Explanation:
(a) if x is 6
then
output:
'Eight'
(b) if x is 8
then
output:
'Eight'
Similar questions