Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- float a,b,c;
- cout << "wprowadz liczby a,b,c:" << endl;
- cin >> a >> b >> c >> endl;
- if (a>b){
- if (c>a)
- cout << "Najwieksza liczba to: " << c << endl;
- else
- cout << "Najwieksza liczba to: " << a << endl;
- }
- else{
- if (c>b)
- cout << "Najwieksza liczba to: " << c << endl;
- else
- cout << "Najwieksza liczba to: " << b << endl;
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement