September 16, 2013
Today we learned when to use the for loop, the do-while loop and the while loop. The do-while loop is utilized when when the loop must always run at least once. In other hand the while-loops are used for all other loops when there might be occasions when the loop will not run. Finally the for-loops are typically selected when doing numeric calculations, especially when using a variable changed by equal amounts each time the loop iterates.
No hay comentarios:
Publicar un comentario