Answer to Question #47949 in C++ for adrian ambagan

Question #47949
Write a program that can input the name,age,gender and address and this display the given data.
1
Expert's answer
2014-10-17T15:02:59-0400
#include <stdlib.h>
#include <iostream>
#include <stdio.h>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
string name, gender, address;
cout<<"Ener the name : ";
cin>>name;
system("cls");
cout<<"Ener the gender : ";
cin>>gender;
system("cls");
cout<<"Ener the address : ";
cin>>address;
system("cls");
cout<<"Name : "<<name<<endl;
cout<<"Gender : "<<gender<<endl;
cout<<"Address : "<<address<<endl;
system("pause");
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS