This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Otherwise, print a line showing the number of loonies and pennies that the machine will generate as change. Note that if either count is zero, it should not be displayed. Enter the change amount 34 34 pennies Enter the change amount 340 3 loonies and 40 pennies Enter the change amount 600 6 loonies program VendingMachine implicit none integer*4 amt print*, "Enter the change amount" read*, amt CSE 1540 Week 5.2 – February 1, 2012 page 1 of 1...
View Full Document
This note was uploaded on 02/13/2012 for the course CSE 1540 taught by Professor Hofbauer during the Winter '12 term at York University.
- Winter '12