daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Sep 12th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<string>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7.     string firstName, lastName;
  8.     int birthYear, height;
  9.  
  10.     cout << "What is your first Name?" << endl;
  11.     getline(cin, firstName);
  12.     cout << "What is your last Name?" << endl;
  13.     getline(cin, lastName);
  14.     cout << "What is your birth year?" << endl;
  15.     cin >> birthYear;
  16.     cout << "What is your height in meter?" << endl;
  17.     cin >> height;
  18.  
  19.     cout << "Hello " << firstName << " " << lastName << ",\nYou are " << (2018 - birthYear) << " years old.\nYou are about " << (height * 100) << "." << endl;
  20.  
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top