To print whether the number is odd or even, choose the correct option.

1.4 To print whether the number is odd or even, choose the correct option.
A) (a/2==0)?pr int f ( “Odd” ) ; :pr int f ( “Even” ) ;
B) (a%2==0)?pr int f ( “Odd” ) :pr int f ( “Even” ) ;
C) (a%2==1)?pr int f ( “Odd” ) :pr int f ( “Even” ) ;
D) (a/2==1)?pr int f ( “Even” ) :pr int f ( “Odd” ) ;


Leave a Reply