SHARE
TWEET

Untitled

Alex2002s Dec 11th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a,b;
  7.     cout<<"интервал a , b=";
  8.     cin>>a;
  9.     cin>>b;
  10.     int n;//количество элементов
  11.     cout<<"n=";
  12.     cin>>n;
  13.     int x[n];
  14.     for (int i=0;i<n;i++)
  15.     {
  16.         cin>>x[n];
  17.         if (x[n]<a || x[n]>b)
  18.             cout<<i<<" ";
  19.     }
  20.     cout<<endl;
  21.     return 0;
  22. }
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