Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do {
- //Prints the meny
- printf("1. Set exchange rate in SEK (current rate: %.2f)\n", exchangeRate);
- printf("2. Read prices in the foreign currency\n");
- printf("3. End\n\n");
- printf("Give your choice (1 - 3): ");
- scanf("%hd", &choice);
- printf("\n");
- switch(choice) {
- case 1 :
- break;
- case 2 : ;
- //Counts the total forign sum given until the price is negative
- break;
- case 3 :
- printf("End of program!\n\n");
- break;
- default :
- //If a non valid number is given
- break;
- }
- } while (choice != 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement