Advertisement
Koalaazz

Assignment 2 - Nested

Sep 10th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. //assignment 2
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int score;
  8.  
  9. cout << "Enter a score between 0 and 1000\nScore: ";
  10. cin >> score;
  11.  
  12. //0 score
  13. if (score == 0)
  14. {
  15. cout << "you shouldnt even get a point for spelling your name right\n";
  16. }
  17.  
  18. //250 score
  19. else if (score <= 250)
  20. {
  21. cout << "not to bad for a 3 year old!!!!\n";
  22. }
  23.  
  24. //score 500
  25. else if (score <= 500)
  26. {
  27. cout << "so close to being awesome but yous still suck xdxd\n";
  28. }
  29.  
  30. //score 750
  31. else if (score <= 750)
  32. {
  33. cout << "learning you are young padawan";
  34. }
  35.  
  36. //score 999
  37. else if (score >= 751)
  38. {
  39. cout << "you have skills give yourself to the darkside!";
  40. }
  41.  
  42. //score 1000
  43. else if (score == 1000)
  44. {
  45. cout << "mace windu\n";
  46. }
  47. return -0;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement