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

what were the main reasons for the scramble of Africa
Solve the problem using the guess-and-check method. Each rack in a clothing store can hold 8 shirts. How many racks does the store need to display 96 shirts?
Division of replicated chromosomes occurs during:mitosisprophase Imeiosis Imeiosis II
Some steps to rewrite the expression x3 − 16x + x2 − 16 as a product of three factors are shown below: Step 1: x3 − 16x + x2 − 16 Step 2: x3 + x2 − 16x − 16 St
What are stem cells, and why might a person with damage to the brain or spinal cord be very interested in the advancement of this field
solve the equation m=2n-p
What did the emancipation proclamation do?
how mant feet are there in 4.3 miles? (there are 5280 feet in 1 mile)
If f(x)=3x and g(x)=1/x, what is the domain of (g o f)(x)?
Solve for x PLZ HELP!!! X - 6 ———— = 5 3 A. x=9 B. X= 14 C. X= 21 D. X = 24