2080 7

BIT102 ยท 2080 ยท 5 marks

Explain structure of for loop. Write a program to reverse a number entered by user.

Explain structure of for loop. Write a program to reverse a number entered by user. [5]

C ProgrammingChapter 5: Loops and IterationFor loop structure and syntax

The for loop is an entry-controlled loop used when the number of iterations is known in advance. Syntax: Explanation of each part: Part Description ------------------- Initialization Sets the starting value of the loop variable (executed once) Condition Checked before each iteration; loop runs wh...