Computer Science, asked by nevya54, 2 months ago

Rewrite the following program segment using Ternary operator instead of if else statements:

if ( a % 2 = = 0)

str = “Even”;

else

str = “Odd” ;
in java

Answers

Answered by hemanthegreat
0

Answer:

okkkkkkkkkkkkklkkkkkkkkkkkkkkkkkkkkkkkkk

Similar questions