Convert following into if-else
System.out.println(no%2==0)?”Even” :”Odd”;
Answers
Answered by
0
Answer:
if(no%2==0)
System.out.println("Even");
else
System.out.println("Odd");
Similar questions