what will the output of the following in java, if x=4 y=2 then (x==y)?x+y:x*y
Answers
Answered by
0
Answer:
x=4 and y=2 (given)
ques is :-
x+y
=> 4+2 (given)
=> 6 .
x × y
=> 4×2 (given)
=> 8 .
hence, 6 is not equal to 8
so, x is also not equal to y.
please!! mark it as a brainlist.
Similar questions