what will be the output of the following segment when executed: int x=10, y=20; if((x<y) || (x+5) >10) System.out.print(x); else System.out.print(y;
Answers
Answered by
0
Answer:
True
Explanation:
10 is less than 20 s
o by 0 and 1 or trutalogy and falacy this is true
= 1
and 15 is greater than 10
so it's true = 1
1*1= 1
So the value is true
Similar questions