Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int najwieksza(int a, int b, int c)
- {
- if(a >= b && a >= c)
- return a;
- if(b >= a && b >= c)
- return b;
- return c;
- }
- int main()
- {
- int wynik = najwieksza(312, 1054, 778);
- cout << wynik << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement