Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. char answerOne;
  6. std::cout << "Hello. Do you have a moment? Say 'y' or 'n'\n";
  7. std::cin >> answerOne;
  8. if(answerOne == "y") std::cout << "What is your name?\n";
  9. else std::cout << "Sorry, I didn't quite catch that\n";
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement