rewrite the following using ternary operator
If (x%2==0)
System.out.println("even");
else
System.out.println("odd");
please answer correctly not as shown in that pic
Attachments:
Answers
Answered by
1
Answer:
(x%2==0)?"even"!"odd";
Similar questions