Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- using namespace std;
- int main(){
- string firstName, lastName;
- int birthYear, height;
- cout << "What is your first Name?" << endl;
- getline(cin, firstName);
- cout << "What is your last Name?" << endl;
- getline(cin, lastName);
- cout << "What is your birth year?" << endl;
- cin >> birthYear;
- cout << "What is your height in meter?" << endl;
- cin >> height;
- cout << "Hello " << firstName << " " << lastName << ",\nYou are " << (2018 - birthYear) << " years old.\nYou are about " << (height * 100) << "." << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment