#mastery<\/a>10 #MASTERY<\/a>10<\/p>\n Here i will explain you how to do basic output and input text based in C++.<\/p>\n To output something is really simple. in every output you always will have to put ”\n<\/p>\n An example to output text you will put upper commas:<\/p>\n cout\n<\/p>\n An example to output a function you will do this:<\/p>\n cout\n<\/p>\n If you want to put some text and a function is:<\/p>\n cout\n<\/p>\n If you want to put end the line after whatever you print put this.<\/p>\n cout\n<\/p>\n Here is everything together:<\/p>\n cout\n<\/p>\n ——————————————————————————————————————————————–<\/p>\n To input something the first thing you want to do is to declare the variable were you want to save the input.<\/p>\n If is an int variable just put \u00a0 int n1;<\/p>\n If is a string \u00a0name; (You will have to include the string library)<\/p>\n If is a boolean \u00a0bool n1;<\/p>\n And etc.<\/p>\n After you now this the syntax to an input is:<\/p>\n cin >> ;<\/p>\n Let\u00b4s say you will save a number which is variable is n1.<\/p>\n cin >> n1;<\/p>\n \u00a0<\/p>\n That is basically everything to know about input and output in c++.<\/p>\n Hope you understand so i can \u00a0get my 2 points!<\/p>\n \u00a0<\/p>\n \u00a0<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" #mastery<\/a>10 #MASTERY<\/a>10<\/p>\n Here i will explain you how to do basic output and input text based in C++.<\/p>\n To output something is really simple. in every output you always will have to put ”\n<\/p>\n An example to output text you will put upper commas:<\/p>\n cout\n<\/p>\n An example to output a function you will do this:<\/p>\n cout\n<\/p>\n If you want to put some text and a function is:<\/p>\n cout\n<\/p>\n If you want to put end the line after whatever you print put this.<\/p>\n cout\n<\/p>\n Here is everything together:<\/p>\n cout\n<\/p>\n ——————————————————————————————————————————————–<\/p>\n To input something the first thing you want to do is to declare the variable were you want to save the input.<\/p>\n If is an int variable just put int n1;<\/p>\n If is a string name; (You will have to include the string library)<\/p>\n If is a boolean bool n1;<\/p>\n And etc.<\/p>\n After you now this the syntax to an input is:<\/p>\n cin >> ;<\/p>\n Let´s say you will save a number which is variable is n1.<\/p>\n cin >> n1;<\/p>\n <\/p>\n That is basically everything to know about input and output in c++.<\/p>\n Hope you understand so i can get my 2 points!<\/p>\n <\/p>\n <\/p>\n<\/div>\n