Advertisement
MeehoweCK

Untitled

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