Help with a code Please!
***The loop keeps going and I don't know how to get it to stop. I'm trying to get it to ask a question: How are you feeling today on a scale of 1-10?, then the user inputs the data. If it's over 7 then the program ends with a message. If it's less than 7, then it asks a question. You input a response. Then the program restarts.*** How would I do this? I'm still very new to C++. #include <iostream> using namespace std; int main() { int feeling; int response; while(feeling <= 7) { cout <<"How are you feeling today on a scale of 1-10?\n"; cin >> feeling; if (feeling >= 7) { cout << "Way to go! You're having a great day!\n"; } else { cout << "What can you do to make your day better?\n"; cin >> response; cout << "That's a good a idea.\n"; } } return 0; }