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
0
a)
it is the correct answer
Answered by
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
Similar questions
English,
1 month ago
Computer Science,
1 month ago
Science,
3 months ago
Math,
3 months ago
Math,
9 months ago