Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
256 B
0
Indexable
Never
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const string name = "Asd.txt";
int main()
{
	int n, a;
	ifstream c(name);
	c >> n;
	for (int i = 0; i < n; i++)
	{
		c >> a;
		cout << a << endl;
	}
	c.close();
}
Leave a Comment