daily pastebin goal
34%
SHARE
TWEET

6

a guest Jan 24th, 2019 75 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.     int x, a, b;
  7.     bool k = 0;
  8.     cout << "x= " << endl;
  9.     cin >> x;
  10.     cout << "a= " << endl;
  11.     cin >> a;
  12.     cout << "b= " << endl;
  13.     cin >> b;
  14.     for (int i = a; i <= b; i++) {
  15.         if (x == i) k = 1;
  16.     }
  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