How do I do this program?

That is the correct answer, but not what you want.