Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<fstream>
- using namespace std;
- ifstream fin("bac.txt.cpp");
- int ap[1000];
- int main()
- {
- int k,x,i;
- while(fin>>x)
- {
- ap[x]=1;
- }
- cin>>k;
- for(i=100; i>=k; i--)
- {
- if(ap[i]>=1) cout<<i<<" ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement