Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- // napisz funkcję, która zwraca wartość większej z dwóch podanych liczb:
- int wieksza(int a, int b)
- {
- if(a >= b)
- return a;
- return b;
- }
- int main()
- {
- int a, b;
- cin >> a >> b;
- cout << wieksza(a,b) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement