Computer Science, asked by snehal1525, 4 months ago

rewrite the following using ternary operator
if(x%2==0)
system.out.println("even");
else​

Answers

Answered by umangbatra09
0

Answer:

String k; k = x%2 == 0 ?

“EVEN” : “ODD”

System.out.print(k)

Similar questions