#include <iostream.h>
int main()
{
int Money = 900; //creates variable Money
int& rMoney = Money; //creates reference to Money
int n; //variable for input
cout <<"Here is the current amount: " << "$" << Money << "n";
cout <<"Enter how much money you wish to withdraw." << endl;
cin >> n;
cout <<"Taking out " << "$" << n << endl;
cout <<"Here is the money you have left: " << "$" << rMoney - n << endl;
return 0;
}
|