Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int k;
- cin >> k;
- int prv_test, vtor_test, tret_test, cetvrt_test;
- cin >> prv_test >> vtor_test >> tret_test >> cetvrt_test;
- int zbir = prv_test + vtor_test + tret_test + cetvrt_test;
- int bodova_granica;
- if (k == 2)
- {
- bodova_granica = 60;
- }
- else if (k == 3)
- {
- bodova_granica = 70;
- }
- else if (k == 4)
- {
- bodova_granica = 80;
- }
- else if (k == 5)
- {
- bodova_granica = 90;
- }
- bodova_granica *= 5;
- int petti_test = bodova_granica - zbir;
- if (petti_test > 100)
- {
- cout << "GRESHKA" << endl;
- }
- else {cout << petti_test << endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement