Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b, c;
- cin>>a>>b>>c;
- if(a>b){
- if(b>c){
- cout<< a<<" a legnagyobb es "<< c << " a legkisebb";
- }else if(a>c){
- cout<< a<<" a legnagyobb es "<< b << " a legkisebb";
- }else{
- cout<< c<<" a legnagyobb es "<< b << " a legkisebb";
- }
- }
- if(b>a){
- if(a>c){
- cout<< b<<" a legnagyobb es "<< c << " a legkisebb";
- }else if(b>c){
- cout<< b<<" a legnagyobb es "<< a << " a legkisebb";
- }else{
- cout<< c<<" a legnagyobb es "<< a << " a legkisebb";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement