Prepare a c++ program of the sample run below:
SAMPLE RUN:
Name Q1 Q2 Q3 Q4 Q5
Von 20
# include<iostream>
using namespace std;
int main()
{
string Q1,Q2,Q3,Q4,Q5;
cout<<"Enter the name: ";
cin>>Q1;
cout<<"Enter the name: ";
cin>>Q2;
cout<<"Enter the name: ";
cin>>Q3;
cout<<"Enter the name: ";
cin>>Q4;
cout<<"Enter the name: ";
cin>>Q5;
cout<<"Name "<<Q1<<" "<<Q2<<" "<<Q3<<" "<<Q4<<" "<<Q5<<endl;
cout<<"Von"<<" "<<20;
}
Comments
Leave a comment