Loops and beginning of c programming
Loop is a statement which allows repetition of execution of statements subject to fulfillment of a condition.
It contains three parts
- Initialization: Contol variable is assigned a value.
- Condition testing: The condition testing part of the loop evaluate a condition and the result of this evaluation decides if the loop execute or will be skipped.
- Increment: The control variable is set from the initial value to its final value.
There are three loops in c I know
There is no re initialization. It should be increment.
ReplyDeleteThanks for correction
Delete