C Programs
- 1) Fibonacci Series.
- 2) Prime number.
- 3) Palindrome number.
- 4) Factorial.
- 5) Armstrong number.
- 6) Sum of Digits.
- 7) Reverse Number.
- 8) Swap two numbers without using third variable.
What is for used for in C?
The for loop in C language is used to iterate the statements or a part of the program several times. It is frequently used to traverse the data structures like the array and linked list.
What is the for loop in C?
A for loop is a repetition control structure which allows us to write a loop that is executed a specific number of times. The loop enables us to perform n number of steps together in one line. Syntax: for (initialization expr; test expr; update expr) { // body of the loop // statements we want to execute }