Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int x, y, z;
- int main()
- {
- cout<<"Podaj 1 liczbe: ";
- cin>> x;
- cout<<"Podaj 2 liczbe: ";
- cin>> y;
- cout<<"Podaj 3 liczbe: ";
- cin>> z;
- if(y&&z<x)
- {
- cout<<"Najwieksza jest pierwsza wytypowana liczba "<<x<<endl;
- }
- if(x&&z<y)
- {
- cout<<"Najwieksza jest druga wytypowana liczba "<<y<<endl;
- }
- if(x&&y<z)
- {
- cout<<"Najwieksza jest druga wytypowana liczba trzecia "<<z<<endl;
- }
- if(x&&y==z)
- {
- cout<<"Wszystkie liczby sa takie same"<<endl;
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement