In this program, we will learn how to print any message using while 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
while Loop:The while loop in C is used to evaluate a test condition and iterate over the loop body until the condition returns True. The loop ends when the condition returns False. This loop is also known as a pre-tested loop because it is commonly used when the number of iterations is unknown to the user ahead of time.
subscribe if you like this video and give a thumb 👍.
Ещё видео!