Hello!
I don't know how to read from a file and I have to rewrite my program.
I know I have to include the fstream library.Could you help me please with this ??
@hamsterman Yes,it's just a little bit weird.Indeed,it is 5*n. I haven't realised it until now.Thank you very much.I have found this problem in a book and I have tried to solve it without realising that the answer is a multiple of 5. :))