Computer Science, asked by sanskritisharma2006, 3 months ago

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 5 (b) x is 8

only correct and detailed answers ​


siddhichoudhary79: kitna class ka h

Answers

Answered by Anonymous
0

a)

it is the correct answer

Answered by Omprasad1234567890
5

Answer:

ans) x is 5

as the condition is true so it will print the if block and in if block output to be printed is x is 5.

so ans is = x is 5

Explanation:

this may help you

please mark this answer as brainlist answer please

please give thanks to me in this answer please


Anonymous: do you guys use any other apps to
Anonymous: cha t
sanskritisharma2006: no
Anonymous: ok
siddhichoudhary79: hii
sanskritisharma2006: good morning everyone ☕
Anonymous: good morning
Omprasad1234567890: good morning siso
siddhichoudhary79: gm
siddhichoudhary79: sqb ko
Similar questions