Computer Science, asked by chandan731096, 3 months ago

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 Sudhir343
1

Answer:

(x%2==0)?"even"!"odd";

Similar questions