Assume that name has been declared suitably for storing names (like "Misha", "Emily" and "Sofia") Write some code that reads a value into name then prints the message "Greetings, NAME" where NAME is replaced the value that was read into name. For example, if your code read in "Rachel" it would print out "Greetings, Rachel".
.
.
Click on the title for the solution
.
.
cin>>name;
cout<<"Greetings, "<<name;
.
Click on the title for the solution
.
.
This is the answer:
:
cin>>name;
cout<<"Greetings, "<<name;
Comments
Post a Comment