solution of question 1
[SET – 1]

C++ program to write number 1 to 100 in a data file NOTES.TXT

 

#include<fstream.h>
  
int main()
{
	ofstream fout;
	fout.open("NOTES.TXT");
	for(int i=1;i<=100;i++)
		fout<<i<<endl;
	fout.close();
	return 0;
}