Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement