Guest User

Untitled

a guest
Apr 4th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. int answer1;
  9. cout << "What is 6 + 10?" << endl;
  10. cin >> answer1;
  11.  
  12. if (answer1 == 16)
  13. {
  14. cout << "You are a genius!" << endl;
  15. }
  16. else
  17. {
  18. cout << "Sorry, stay in school man." << endl;
  19. }
  20.  
  21. int answer2;
  22. cout << "What is 20 - 10?" << endl;
  23. cin << answer2;
  24.  
  25. if (answer2 == 10)
  26. {
  27. cout << "You are a genius!" << endl;
  28. }
  29. else
  30. {
  31. cout << "Sorry, stay in school man." << endl;
  32. }
  33.  
  34. int answer3;
  35. cout << "What is 100 + 1?" << endl;
  36. cin << answer3;
  37.  
  38. if (answer3 == 101)
  39. {
  40. cout << "You are a genius!" << endl;
  41. }
  42. else
  43. {
  44. cout << "Sorry, stay in school man." << endl;
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment