I need some help here, since I totally suck at programming
I need to program yet another currency conversion program using loops. All I have set up so far is the Menu to select what demniomation you want to convert into USD. I'm not having any luck trying to figure out to how set up the loop per deminomiaton so it can be converted from USD to that currency when you select it. Basicly You select a currency from the menu then imput how many USD you want to convert to that currency. Heres what I have now:
I need to program yet another currency conversion program using loops. All I have set up so far is the Menu to select what demniomation you want to convert into USD. I'm not having any luck trying to figure out to how set up the loop per deminomiaton so it can be converted from USD to that currency when you select it. Basicly You select a currency from the menu then imput how many USD you want to convert to that currency. Heres what I have now:
Code:
#include <studio.h> main() { int iSelection = 0; while ( iSelection !=6 ) { printf("1\tBahamian Dollar\n"); printf("2\tJamacian Dollar\n"); printf("3\tNew Zealand Dollar\n"); printf("4\tAustralian Dollar\n"); printf("5\tEuro\n"); printf("6\tQuit\n"); printf("Enter your selection (1-6): "); scanf("%d", &iSelection); } }
Comment