Advertisement
MeehoweCK

Untitled

Jan 7th, 2021
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int wieksza(int a, int b)
  6. {
  7.     if(a > b)
  8.         return a;
  9.     return b;
  10. }
  11.  
  12. int main()
  13. {
  14.     cout << "Wpisz dwie liczby, ktore chcesz porownac: ";
  15.     int x, y;
  16.     cin >> x >> y;
  17.     cout << "Wieksza z wpisanych liczb to " << wieksza(x,y) << endl;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement