I second Nevemteve's suggestion as well as add that you should qualify some of the test criterion where you've found problems. Also if you're having difficulties compiling and running at all, then cut/paste that information and illustrate the parts where you are stuck.
Based on a quick look you have typo's in lines 17 and 29. Fix those.
Don't alter your input numbers if you need to retain those for output or reference later in your program, instead make copies of them for modification.
Last edited by rtmistler; 10-29-2015 at 12:25 PM.
|