Assume that name and age have been declared suitably for storing names (like “Abdullah”, “Alexandra” and “Zoe”) and ages respectively. Write some code that reads in a name and an age and then prints the message “The age of NAME is AGE.” where NAME and AGE are replaced by the values read in for the variables name and age. For example, if your code read in “Rohit” and 70 then it would print out “The age of Rohit is 70.”.

Assume  that name  and age have been declared  suitably for storing names  (like “Abdullah”, “Alexandra” and “Zoe”) and ages respectively. Write some code that reads in a name  and an age and then prints the message  “The age of NAME  is AGE.” where NAME  and AGE are replaced by the values  read in for the variables  name  and age. For example, if your code read in “Rohit” and 70 then it would print out “The age of Rohit is 70.”.

LANGUAGE: C++

CHALLENGE:

Assume  that name  and age have been declared  suitably for storing names  (like “Abdullah”, “Alexandra” and “Zoe”) and ages respectively. Write some code that reads in a name  and an age and then prints the message  “The age of NAME  is AGE.” where NAME  and AGE are replaced by the values  read in for the variables  name  and age. For example, if your code read in “Rohit” and 70 then it would print out “The age of Rohit is 70.”.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level