I have a problem on my code which return the n last line from file, when I enter 8 it return 4 lines, 6 -> 3 last lines, 4 -> 2 last line and so on.
this is my