Programming is a trip made of trial and error. You Don’t know the right answer as long as you don’t try to write.
Watch the Loops
A loop is an infinite cycle that forces the program to run endlessly, without any way out. This causes a processor lock due to the exhaustion of available CPU resources. There is no way to remedy a loop. As the most serious misfortunes, we must try to prevent them.