Loop For, While and Do-While in C Language
- Lucas
- August 15, 2011
All loops have the same function, which is to repeat an instruction a certain or undetermined number of times. The structure of the FOR loop is as follows: for(inicialização; condição; incremento) comandos; For example: #include voi main() { int x; for(x = 0; x <= 100; x++) printf(“%d”, x); } The program above displays numbers