funcion runs 14 times, then program crashes

Printable View