Advertisement
MasterZii

Untitled

Aug 8th, 2018
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string q;
  8.     string w;
  9.     string Bob;
  10.     string Emily;
  11.     {
  12.         cout << "Who is this? ";
  13.         cin >> q;
  14.         if (q == Bob)
  15.         {
  16.             cout << "Hey there bro. ";
  17.         }
  18.         if (q == Emily)
  19.         {
  20.             cout << "Hi friend :) ";
  21.         }
  22.         else
  23.         {
  24.             cout << "Oh hey " << q << ", how are you? ";
  25.         }
  26.         cin >> w;
  27.         cout << "Hey, that's " << w;
  28.     }
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement