You are on page 1of 1

#include<iostream>

#include<stdlib.h>
using namespace std;
main(){

cout << " Enter your name: " ;


char name[40];
cin.getline(name,40);
cout << " Enter your city: " ;
char city[40];
cin.getline(city,40);
cout << " Enter your age: ";
int age;
cin >> age;
cout << endl << endl;
cout << "Your name is " << name << endl;
cout << "Your city is " << city << endl;
cout << "Your age is " << age << endl;

You might also like