Computer Science, asked by nallarithvika, 4 months ago

Rewrite the following using ternary operator.
if( x%2==0)
System. out. println ("Even");
else
System. out. println ("odd");​

Attachments:

Answers

Answered by RaghuTT
2

Answer:

( x%2==0)?even :odd

Explanation:

Hope it helps

Answered by devsehrawat753
1

Explanation:

Atomic number (Z)=15=P→[Ne]3s

2

3p

3

Phosphorus belongs to 15th group

number of valence electrons 3s

2

3p

3

=5

and valency =3 in ground state.

Hence, the correct option is C

Similar questions