convert the following into if -else-system.out.println(d==10?0:1);
Answers
Answered by
1
Answer:
answer is 0.
Explanation:
the tertiary operator consists of only boolean values in the condition statement. so the first condition after? mark if true then other is false as in the given condition d=10. as it is true we have to write value of the true condition
Similar questions
Social Sciences,
3 months ago
English,
3 months ago
English,
7 months ago
English,
11 months ago
Physics,
11 months ago