Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- double wieksza(double a, double b)
- {
- if(a > b)
- return a;
- return b;
- }
- int main()
- {
- double x, y;
- cout << "Podaj dwie liczby rzeczywiste: ";
- cin >> x >> y;
- cout << "Wieksza z tych dwoch liczb wynosi " << wieksza(x, y) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement