Rewrite the following using ternary operator.
if( x%2==0)
System. out. println ("Even");
else
System. out. println ("odd");
Attachments:
Answers
Answered by
2
Answer:
( x%2==0)?even :odd
Explanation:
Hope it helps
Answered by
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
Math,
2 months ago
Computer Science,
2 months ago
English,
2 months ago
Science,
4 months ago
English,
4 months ago
Social Sciences,
9 months ago
Social Sciences,
9 months ago