Answer to Question #47949 in C++ for adrian ambagan
Write a program that can input the name,age,gender and address and this display the given data.
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment