Well guys im a newbie to C programming and i am having a difficult time with one of my first homework assignments. I was wondering if someone could show me which loops to use and how to go about solving the problem in code.

I have attached the assignment in .txt for you guys to look at. Any help would be greatly appreaciated.
Thanks.