Computer Science, asked by palstyasingh815, 7 months ago

convert the following into if -else-system.out.println(d==10?0:1);​

Answers

Answered by byalipriyanka29
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