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