Ask Question
10 December, 14:56

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"

+1
Answers (1)
  1. 10 December, 18:22
    0
    void main () {

    string name;

    cout<<"Enter Name";

    cin>>name;

    cout<<"Greetings ";

    cout<
    }

    Explanation:

    in main function we declared a variable called "name". using cin we are reading the value into name and we are printing that name using cout.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume that name has been declared suitably for storing names (like "Misha", "Emily" and "Sofia") Write some code that reads a value into ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers