preciousify587 preciousify587
  • 26-03-2022
  • Computers and Technology
contestada

write a C++ program to print name, age, class, school​

Respuesta :

stapmoshun
stapmoshun stapmoshun
  • 26-03-2022

Answer:

#include <iostream>

using namespace std;

int main()

{

   string name;

   string age;

   string Nameclass;

   string school;

   cout<<"What is your name?\n";

   cin>>name;

   cout<<"What is your age?\n";

   cin>>age;

   cout<<"What is your class?\n";

   cin>>Nameclass;

   cout<<"What is your school?\n";

   cin>>school;

   cout<<"Name: " + name;

   cout<<"\nAge: " + age;

   cout<<"\nClass: " + Nameclass;

   cout<<"\nSchool: " + school;

   return 0;

}

Explanation:

Answer Link

Otras preguntas

I want to know what is the answer to this problem?
What american impressionist painter was known for paintings focused on the intimacy of a mother and child?
Words that have similar meanings.
9+3tenths+17hundredths
When ultraviolet light with a wavelength of 400 nm falls on a certain metal surface, the maximum kinetic energy of the emitted photoelectrons is 1.10 ev . part
Random selection refers to A) the process in which subjects are placed into the treatment or control group. B) how subjects are picked from the population for
I don't really understand this question, can someone help.
As the temperature of a solution increases,what happens to its molarity? Explain
I'm so confused how do you expand brackets and ?
Describe the process of how water freezes... consider the polarity of water and hygrogen binding