Advertisement
Guest User

Untitled

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