Advertisement
dllbridge

Untitled

Sep 29th, 2022
1,263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1.  
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. /////////////////////////////////////
  8. int main()
  9. {
  10.     int a,b,c;
  11.    
  12.     cin>>a>>b>>c;
  13.    
  14.     if((a < b) && (a < c))
  15.     {
  16.     cout << a;
  17.     }
  18.    
  19.     if((b < a) && (b < c))
  20.     {
  21.     cout << b;
  22.     }
  23.    
  24.     if((c < a) && (c < b))
  25.     {
  26.     cout << c;
  27.     }
  28.    
  29.    
  30.     return 0;
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement