Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding

Counting money

Language Java | Level Intermediate | Category Algorithms | August 4, 2015 9:35 am


Algorithm Problem Description

Write a program to get the amount of money and display the count of each type. The coins displays quarters, dimes, nickels, and pennies.

Output

          	        
          	        

Change owed (in cents) : 45
Quarters: 1, Dimes: 2, Nickels: 0, Pennies: 0
Number of coins used= 3

          	        
          	        				    


Comments



Please login to add comments.