For loop
The function of For Loop is same as that of while Loop, it is used to iterate a part of the program several times as long as the specified condition returns True. If the number of iteration is fixed, it is recommended to use for loop than other loops. For loop starts with the for keyword and it must include a intilizing variable, condition, increment or decrement.
The only difference between For Loop and While loop is the syntax. In while loop we'll write intializing variable in one line, condition in one line, increment or decrement value in one line whereas in For loop we'll write all those operation in same line.
CODE
EG 1 . Printing 1 to 5 using For loop
static void Main(string[] args) {
    for (int i=1;i<=5;i++) {
        Console.WriteLine(i);
    }
}
EG 2 . Printing 5 to 1 using For loop
static void Main(string[] args) {
    for (int i=5;i>=1;i--) {
        Console.WriteLine(i);
    }
}
(Click Here, For more exercises)