Rewrite the following statement using ternary operator.
Attachments:
Answers
Answered by
1
chat c[5]=x%2==0?"Even":"Odd";
System.out.println(c);
Similar questions