can i do this with switch statement?

Printable View