Tag Archives: #10

QUIZ 10

#mastery10

Hello class, I have already done my mastery#10, I just have to show the ability to make an input and an output in C++

 The procedure is the next one:

 

First of all you need to declare a variable (I declaraded a string because it is a text),  like this:

 

 

string name;

 

After that you will ask for something; in this program I asked for a name, so I will write:

 

cout <<“Give your name”; cin >> name;  //What this do is ask and save the name.

 

At the end you need to print the name like this:

 

cout <<“Your name is: “<<name<<“”<< endl

return 0;

 

Whit this I am going to print the text. and that’s it! 🙂

 

My program is in the next link:

https://www.dropbox.com/s/13aaylhxobtld7x/Mastery10.cpp?dl=0