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;