SHARE
TWEET

Untitled

a guest Sep 20th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int main() {
  5.     string a, b, c;
  6.     cin>> a >> b >> c;
  7.     if(a.length()<=30 && b.length()<=30 && c.length()<=30){
  8.     if (a<b && a<c && a!=b && a!=c){
  9.         cout<<a;
  10.     }
  11.     if (b<a && b<c && b!=c )
  12.     {
  13.         cout<<b;
  14.     }
  15.     if (a==b && b<c){
  16.         cout<<b;
  17.         }
  18.     if(b==c && a>b){
  19.         cout<<b;
  20.       }
  21.     if(c<b && a>c && c!=b && a!=c){
  22.         cout<<c;}
  23.     if (a==b&&b==c){
  24.      cout<<c;}}
  25.     else
  26.            return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top