Question: What is the error in the following code, why does it skips the user input for the string part, and takes input for the integer

What is the error in the following code, why does it skips the user input for the string part, and takes input for the integer age variable find and explain the issue. Also, provide the solution to fix it.

What is the error in the following code, why does it skipsthe user input for the string part, and takes input for the

1 !! Source.cpp + x PF_00_07_getting_user_input_1 (Global Scope) 1 #include 2 #include 3 4 5 using namespace std; 6 7 8 eint main() 9 { 10 int age; 11 cout > age; 13 cout > age; 22 cout Options ->Debugging->Automatically close the conso le when debugging stops. Press any key to close this window

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!