C Program to print name 10 times using loop

preview_player
Показать описание
In this program, we will learn how to print any message using for loop.

Loops in C:
Loop causes a secion of program a certain number of time.The section of code repeat until the condition remains true.When the condition becomes false the control
exit the loop body and execute the remaining statement of program following the loop body.

Types:
There three type of loops which repeat a section of code number of times:

1).For Loop
2).While Loop
3).Do-While
For Loop:
It is easiest loop to understand.All its loop control elements gathered in one place.While in the other loop constructions they are scattered in the program.

Working of for loop:
for loop execute the section of code a fixed number of times and usually it is know how many times the section of code will repeated,before entering the loop body.
Рекомендации по теме
visit shbcf.ru