Skip to main content

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;
}
 

Comments

  1. A number is a concept that arises from the result to have things that are an aggregate or a generalization of this concept.
    number information

    ReplyDelete
  2. When I wrote the code, it appeared to me an error

    ReplyDelete
  3. When I write this code I'm getting an error

    ReplyDelete

Post a Comment