Question #47949

Write a program that can input the name,age,gender and address and this display the given data.

Expert's answer

#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;
}
LATEST TUTORIALS
APPROVED BY CLIENTS