Assume that name has been declared suitably for storing names (like “Amy”, “Fritz” and “Moustafa”) 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 “Hassan” it would print out “Greetings, Hassan!!!”.

LANGUAGE: C++

CHALLENGE:

Assume  that name  has been declared  suitably for storing names  (like “Amy”, “Fritz” and “Moustafa”) 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 “Hassan” it would print out “Greetings, Hassan!!!”.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

1 Comment

  1. bob on February 16, 2016 at 12:42 am

    must be in this format

    cin >> name;
    cout << "Greetings, " << name << "!!!";

Leave a Comment

You must be logged in to post a comment.