Question: (C++)Please debug my work. Why is my code not working (no output). Thanks. 10 1 #include 2 #include 3 using namespace std; 4 5 int

(C++)Please debug my work. Why is my code not working (no output). Thanks.

(C++)Please debug my work. Why is my code not working (no output).

Thanks. 10 1 #include 2 #include 3 using namespace std; 4 5

10 1 #include 2 #include 3 using namespace std; 4 5 int main() { 6 7 int userNumber; 8 string userNoun; 9 cin >> user Number; 11 getline(cin, userNoun); 12 13 while ((userNumber > 0) && (userNoun != "quit")) { 14 cout > user Number; 16 getline (cin, userNoun); 17 } 18 19 return 0; 20 } 21 a day keeps the doctor away."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!