Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- using namespace std;
- int main()
- {
- int a, b, c;
- cout << "Podaj 1 liczbe: " << endl;
- cin >> a;
- cout << "Podaj 2 liczbe: " << endl;
- cin >> b;
- cout << "Podaj 3 liczbe: " << endl;
- cin >> c;
- cout << "Podales: " << a << ", " << b << ", " << c << endl;
- if (a>=b)
- {
- if (a >= c)
- {
- cout << "MAX = " << a << endl;
- }
- else
- {
- cout << "MAX = " << c << endl;
- }
- }
- else
- {
- if (b >= c)
- {
- cout << "MAX = " << b << endl;
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement