#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
double arr[6] = {1.25, 0.75, 0.90, 0.75, 1.50, 0.75};
int index;
double cost;
cout << "Input number of item: "; cin >> index;
cout << "Input your money: "; cin >> cost;
if(index > 6)
{
cout << "There is no such index" << endl;
return 0;
}
if(arr[index - 1] <= cost)
cout << "Thank you for buying item " << index << ". Your change is " << cost - arr[index - 1] << endl;
else
cout << "Not enough money for buying item " << index << endl;
return 0;
}