I made a simple program but it loads and exits before i can read anything any help?

ayobboy09

New member
include <iostream>
using namespace std;
int main()
{
int dollars,quarters,dimes,nickels,pennies;

cout << "Enter amount in dollars:" ;
cin >> dollars;

cout <<"your change is" << (dollars/.25) << "quarters"<<endl ;

}//end of code


do i need to add something to the end so that it doesn't close?
 
Back
Top