SHARE
TWEET

BT8Trang36

anhkiet2507 Sep 29th, 2018 (edited) 12,306 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x, y;
  8.     cout << "Nhap vao so x: ";
  9.     cin >> x;
  10.     cout << "Nhap vao so y: ";
  11.     cin >> y;
  12.     // Phan a
  13.     (0 <= y) && (y <= 1) && (abs(x) <= y) ? cout << "true\n" : cout << "flase\n";
  14.     // Phan b
  15.     (0 <= x) && (x <= 1) && (0 <= y) && (y <= 1) ? cout << "true\n" : cout << "flase\n";
  16.     system("pause");
  17.     return 0;
  18. }
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