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