#include <iostream>
using namespace std;
//cola machine!
int main()
{
int num;
double bankAcc = 2.00;
cout << "FOO, What do you want: 1) coke, 2)Sprite. " << endl;
cin >> num;
switch (num)
{
case '1':
{
bankAcc = bankAcc - 2;
cout << bankAcc << endl;
break;
}
case '2':
{
bankAcc -= 1.5;
cout << bankAcc << endl;
break;
}
}
return 0;
}
1
is not the same that '1'