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;
- int Max=0;
- if(a%10+a/10>b%10+b/10)
- if(c%10+c/10>a%10+a/10)
- Max=c%10+c/10;
- else
- Max=a%10+a/10;
- else
- if(c%10+c/10>b%10+b/10)
- Max=c%10+c/10;
- else
- Max=b%10+b/10;
- if(Max==a%10+a/10)
- cout<<a<<' ';
- if(Max==b%10+b/10)
- cout<<b<<' ';
- if(Max==c%10+c/10)
- cout<<c;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement