rewrite the following using ternary operator
if(x%2==0)
system.out.println("even");
else
Answers
Answered by
0
Answer:
String k; k = x%2 == 0 ?
“EVEN” : “ODD”
System.out.print(k)
Similar questions