Create 10 files, named file1.txt, file2.txt and so on till file10.txt. The files should contain the number corresponding to their name. So, file1.txt should contain one line with number 1, file2.txt — one line with number 2 and so on.
Tip: Open files within a for loop to make things simpler. And don't forget to close the files!