Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema 447
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- if (n%10<n/10%10 && n%10<n/100)
- if (n/10%10<n/100)
- cout<<n/10%10;
- else
- cout<<n/100;
- if (n/10%10<n%10 && n/10%10<n/100)
- if (n%10<n/100)
- cout<<n%10;
- else
- cout<<n/100;
- if (n/100<n%10 && n/100<n/10%10)
- if (n%10<n/10%10)
- cout<<n%10;
- else
- cout<<n/10%10;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement