What happens
Hi everyone, i was trying to solve a challenge called two printers, at the beggining i solve it without functional programming using loops like for and foreach, now i pass it to functions and i see that the program doesnt return nothing on the terminal, but is because when the function call itself a lot of times just break and dont end with the process
What do you understand or find about that problem
i cant find nothing on internet about why the function just break call itself when she repeat a lot of times the action
Did you try any workaround? What did you do?
yes, i made two test programs, in one i made a for loop that prints a number secuence (1,2,3,4…) in other i do the same test but with functions and its break and dont finish the returns
Evidences
here is the output of the test with functions, see that doesnt end until 1
and here the test with the for loop that ends correctly :
I need help with
how can i make a function that call itself a lot of times like a million thousand of times