Looping switch structure Help (newbie)

This is a discussion on Looping switch structure Help (newbie) within the C Programming forums, part of the General Programming Boards category; Hello,
I'm doing the "currency conversion program" that you all have seen a million times already. I coded the program ...

Looping switch structure Help (newbie)

Hello,

I'm doing the "currency conversion program" that you all have seen a million times already. I coded the program and it runs.
When invalid choice is made from my "menu" it ends the program
(pick 1-6 and someone picks 9).

what I'm wanting to do is to loop the switch so that if user picks "9" it will printf "Please try again" and loop the menu.

As a side note, your while() loop is checking the value of input1 before it's set to anything. You can either initialize it to something (anything but 6) at declaration or change your loop from a while to a do-while.