Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //assignment 2.1
- #include <iostream>
- using namespace std;
- int main()
- {
- int score;
- cout << " Enter a score between 0 and 1000:\n";
- cin >> score;
- switch (score)
- {
- //score 0
- case 0:
- cout << "dude I think you shouldnt even get a point for spelling your name right";
- break;
- //score 1 - 250
- case 1 ... 250:
- cout << "not to bad for a 3 year old xdxd";
- break;
- //score 251 - 500
- case 251 ... 500:
- cout << "so close to being awesome";
- break;
- //score 501 - 750
- case 501 ... 750:
- cout << "learning you are my young padawan";
- break;
- //score 751 - 999
- case 751 ... 999:
- cout << "you have skills, give yourself to the dark side!!!!";
- break;
- //score 1000
- case 1000:
- cout << "mace windu?";
- }
- return -0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement