How can I produce this output without using the If statement.

Printable View