In the following snippet from main()
Code:
{
if ( money < 1 ) // if dollar amount if 1 or less end loop
return -1;
else
if ( choice == 1 ) // if user types 1 then
return total = (money * ( PENNY * 100 )); // total pennies
else
if ( choice == 2 ) // if user types 2 then
return ( money = ( DIME * 10)) ; // total dimes
else
if ( choice == 3 ) // if user types 3 then
return ( money = ( QUARTER * 4)); // total quarters
else
if ( choice == 4 ) //if user types quarter
return ( money = ( NICKEL * 20 )); // nickles
}
When a program encounters a return statement it "returns" from the function without executing any code following the return. Since this is from main() the program ends without doing anything else.
In future please post your code in the post (contained in code tags) not as an attachment.
Jim