Entering data in file using file handling in C [Program]

 

 

Output:

A file named material.txt will be creasted automatcially in the location where your .c file is present.

Here are the screenshots:

1.1 1.2 1.3