108k views
1 vote
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.

User MrKulli
by
5.1k points

1 Answer

1 vote

// i am writing c++ code for the given problem...

// taking input

cout<< " Enter the name : ;

cin>>name;

// printing the message

cout << " Greetings, " << name << endl;

User Goodeye
by
5.3k points