Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- # include <fstream>
- using namespace std ;
- int main()
- {
- int a[11];
- ifstream read_file ("input.txt");
- ofstream write_file ("output.txt");
- int b,i ,k ;
- k=0;
- for (i=1;i<11;i++)
- {
- read_file>>a[i];
- if (a[i]<7)
- {
- k++;
- }
- else ;
- }
- write_file << k << "\n"<<endl;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement