Computer Science, asked by nandinidubey1645267, 7 months ago

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 rpari2005
0

output for a will be eight

output for b will be eight

Answered by sambhavgautam6
0

Explanation:

(a) if x is 6

then

output:

'Eight'

(b) if x is 8

then

output:

'Eight'

Similar questions