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 need answers for 13 A,B,C
50 POINTS! Express the complex number in trigonometric form. -2 2(cos 90° + i sin 90°) 2(cos 0° + i sin 0°) 2(cos 180° + i sin 180°) 2(cos 270° + i sin 27
The Mammoth Cave Discovery Tour includes an elevation change of 140 feet. This is 7/15 of the elevation change on the Wild Cave Tour? Use a equation to solve al
If someone you loved was killed in front of you, but someone created a copy of them that was perfect right down to the atomic level, would they be the same pers
If it's not waters a tulip plant wilts because it
Jayda wants to study the chemical properties of iron. How could she do this?
What are 7 major principles of our government ?
Which quadrant or axis is (8,0)
Explain what equilibrium is and how is it achieved
¿Qué grupo de alimentos es rico en calcio? A. Los granos B. Las lácteos C. Los vegetales D. Las proteínas