Question: There are several syntax and logical errors with the following code snippet. The program should prompt the user to enter age and then store it
There are several syntax and logical errors with the following code snippet. The program should prompt the user to enter age and then store it into the variable ageRewrite the code so that it works correctly.
cout "Please enter your age: ;
cin age;
string age;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
