Advertisement
Ne-Biolog

Untitled

Apr 22nd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include<iostream>
  2. # include <fstream>
  3. using namespace std ;
  4. int main()
  5. {
  6. int a[11];
  7. ifstream read_file ("input.txt");
  8. ofstream write_file ("output.txt");
  9. int b,i ,k ;
  10. k=0;
  11. for (i=1;i<11;i++)
  12. {
  13. read_file>>a[i];
  14. if (a[i]<7)
  15. {
  16. k++;
  17. }
  18. else ;
  19. }
  20. write_file << k << "\n"<<endl;
  21. return 0 ;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement