How do I write a program that produces the following output?

This post does not have any comments yet