Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a,b;
- int najveci;
- cin >> a >> b;
- if (a > 21 && b > 21) {
- najveci = 0;
- }
- else if ((a >= b && a < 22) || (a < 22 && b > 21)) {
- najveci = a;
- }
- else {
- najveci = b;
- }
- if (najveci == 0){
- cout << "GRESKA" << endl;
- }
- else {
- cout << najveci << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement