Ask Question
28 March, 20:45

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"

+4
Answers (1)
  1. 28 March, 22:27
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers