Which of the following best describes the relationship between if/else and switch statements :

A. All if/else if/else sequences can be written as switch statements

B.None of the above

C.if/else if/else sequence are more flexible than switch statements

D.switch statements are more succinct when checking ranges of decimal values

Respuesta :

I want to say ‘A’ since if/else and switch statements are both conditional statements.