![]() |
|
[C] [HELP] Something wrong in my code( works for first part of problem) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] [HELP] Something wrong in my code( works for first part of problem) (/showthread.php?tid=4479023) |
[HELP] Something wrong in my code( works for first part of problem) - Gun94 - Oct 6, 2014 Trying to get this program to work for my CSI class but keep getting an error. The task was to add up a collection amount of pennies(135), nickels(321), dimes(573), Quaters(857). I need to code it to display the total amount $(float) then show 24% going to david (d) then show 76% going to office (d) from my understand i labeled my variables correctly works fine for adding total $ amount but not when i try to do the 24% and 76% of total. Any help would be appricated as i am new to using c++ Code #include <cstdlib>i was able to get the code to work. now closed |