|
-
October 13th, 2012, 02:40 PM
#4
Re: Help looking over
As Peter pointed out, your calculations don't work.
You don't really need the default in the switch statement as you're already weeding out invalid choices in the if statement.
Typically, you'll verify input in a while loop, repeating until valid data is entered, rather than exiting the program and asking the user to rerun it.
Next time, please use code tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|