Explore BrainMass
Share

Explore BrainMass

    C Programming with Division Operation

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    See attachment below. I can get the introductory statements to print, but the sum, difference, and product all produce a result of 0 and the quotient statement of:

    When 22 is divided by 16 you get 1 with a remainder of 1.
    Also, the two closing statements of "If you had 22 nickels and 16 pennies you would have $1.26" doesn't reproduce, and "Thank you for using this program" also doesn't reproduce.

    I have tried to tweak it, but to no avail. Please help.

    © BrainMass Inc. brainmass.com October 10, 2019, 6:48 am ad1c9bdddf
    https://brainmass.com/computer-science/c/c-programming-division-operation-557675

    Attachments

    Solution Summary

    The solution gives a complete C code for peforming division operation and calculating total currency containing nickel and penny.

    $2.19