Guest User

Untitled

a guest
Nov 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int number;
  8. char answer;
  9.  
  10. cout<<"Enter a number guiz\n";
  11. cin>> number;
  12. cin.ignore();
  13. cout<<"Was "<< number <<" your Number?""\n";
  14. cin>> answer;
  15. if (answer == n) {
  16. cout<<"I'm sorry about that";
  17. }
  18. else {
  19. cout<<"You're damn right it was";
  20. }
  21. cin.get();
  22. number = number + 5;
  23. cout<<"I just added 5 to your number, and it is now "<< number;
  24. cin.get();
  25. if (number < 100 ) {
  26. cout<<"It was less than 100";
  27. }
  28. else if ( number == 100 ) {
  29. cout<<"This number equals 100";
  30. }
  31. else {
  32. cout<<"This number is greater than 100";
  33. }
  34. cin.get();
  35. }
Add Comment
Please, Sign In to add comment