Hi I am trying to write some lines to an array in C, and the amount of lines depends on the first input from the user.
My program ends unexpected after 2nd iteration even