I want to promt for a string variable (name of item) and then promt for a double variable (cost). I want this to be done 5 times so each time it loops the vales are stored as a different pair of variable.
need to have user input an item and then its price so i can calc a bill. not sure if I can crate a loop for this or i need to keep a running count somehow
int main()
{
    int i;
    string  Item_1,Item_2,Item_3,Item_4,Item_5;
    double Price_1,Price_2,Price_3,Price_4,Price_5 ;
    while (i<6)
    {
    cout<<"Please enter item"<<endl;
    cin>> Item_1>>Item_2>>Item_3>>Item_4>>Item_5>>endl; 
    cout<<"Please enter cost of   " >> Item_1>>Item_2>>Item_3>>Item_4>>Item_5;
    cin>>Price_1>>Price_2>>Price_3>>Price_4>>Price_5;
    i=i++
    }
    return 0;
}
Code doesn't compile but i expect it to ask for my in put for the 5 variables 5 times
 
     
     
    