Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- cout << "Podaj ocene" << endl;
- cin >> x;
- switch (x)
- {
- case 1:
- cout << "Brak promocji do nastepnej klasy" << endl;
- break;
- case 2:
- case 3:
- case 4:
- case 5:
- cout << "Promocja do następnej klasy" << endl;
- break;
- case 6:
- cout << "Promocja z oceną celującą" << endl;
- break;
- default:
- cout << "Podano zla ocene" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment