Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<fstream>
- using namespace std;
- int main()
- {
- int x[25000],m,n,i,j,a,nr=0,b;
- ifstream f("date.in");
- cin>>a>>b;
- i=0;
- while(f>>x[i])
- {
- if(x[i]>=a&&x[i]<=b)
- nr++;
- i++;
- }
- cout<<nr;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement