I just stared my c++ class tonight. My first assessment is to write a C++ program that declares a value that can hold the price of a lunch. Prompt a user to enter the amount he or she spent on lunch. I got most of it done but i am having a few issues for exampled when i run it "How much money did you spend on lunch 6" and it says "You spent on lunch 6" I need it to say "You spent 6 on lunch" but i dont know how to get numbers to work in side of a cout.note i need it to work with any number not just one number thank you if you can help me.
//now I want to say that I have 5 pies.Notice my the space in the quotation marks.
cout<<" I have "<<pie<<" pies"<<endl;