Need a bit of help with a default

This is a discussion on Need a bit of help with a default within the C Programming forums, part of the General Programming Boards category; hey im writing a program for a currency converter but my default doesnt seem to be working the way i'd ...

Need a bit of help with a default

hey im writing a program for a currency converter but my default doesnt seem to be working the way i'd like it to... i no its only something small (i hope) but if anyone could help it would be much appreciated...

i started with a while loop and i have my main menu with the choices 1-5 and then a switch statement with everything else in it... and the very end i have a default saying "please enter only number 1-5"
BUT when the user choose 5 it says "thank you for using the currency converter" and then i want it to end but instead my default statement reappears...

printf("Please select the number of the country which currency you wish to use.\n\n");
printf("1. Britain\n");
printf("2. Denmark\n");
printf("3. Japan\n");
printf("4. Usa\n"); // Main menu selection
printf("5. Exit Program\n\n");

printf("Please select the number of the country which currency you wish to use.\n\n");
printf("1. Britain\n");
printf("2. Denmark\n");
printf("3. Japan\n");
printf("4. Usa\n"); // Main menu selection
printf("5. Exit Program\n\n");