#include <iostream>
using namespace std;
int main()
{
int type, stop = 1, num;
float total = 0;
cout << "product 1 — $2.98, product 2—$4.50, product 3—$9.98, product 4—$4.49 and product 5—$6.87" << endl;
while (stop == 1) {
cout << "which do you want?" << endl;
cin >> type; cout << "how many?";
cin >> num; cout << "if u want to keep on ,please write 1.If not , write others"; cin >> stop;
if (type = 1) { total += num * 2.96; }
if (type = 2) { total += num * 4.50; }
if (type = 3) { total += num * 9.98; }
if (type = 4) { total += num * 4.49; }
if (type = 5) { total += num * 6.87; }
}
cout << "Total = " << total <<"$" << endl;
return 0;
}