fork download
  1. #include <bits/stdc++.h>
  2. #define ll long long
  3. using namespace std;
  4. int main()
  5. {
  6. ll a, b, c , x ;
  7. cin >> a >> b >> c ;
  8. x = a ;
  9. if ( x <= b ) cout <<" x= b " ;
  10. else if ( x <= c ) cout << " x = c ";
  11. return 0;
  12. }
Success #stdin #stdout 0s 5320KB
stdin
2
5
4
stdout
 x= b