Pretty new to C++, sorry if I am not using the correct terms! I made a program where it allows the user to calculate the amount to tip after inputting the total bill. I would like the program to ask if they want to check another amount and if they don't, then it will close.
Here is what I currently have
#include <iostream>
using namespace std;
int main()
{
double bill, ten, fifteen, twenty, end, end2, end3;
cout << "Enter your bill's total: ";
cin >> bill;
ten = 0.1;
fifteen = 0.15;
twenty = 0.2;
end = ten * bill;
end2 = fifteen * bill;
end3 = twenty * bill;
cout << "10%: " << end << endl;
cout << "15%: " << end2 << endl;
cout << "20%: " << end3 << endl;
system("pause");
return 0;
}