Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- ifstream f("BAC.TXT");
- int main() {
- int x, i = 0;
- while (f >> x) {
- i++;
- cout << x << ' ';
- if (!(i % 5))
- cout << endl;
- }
- f.close();
- cout << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement