In this example, the initial value of loop variable j (of type int) is 100 and the update expression (j -= 10) reduces it by 10 after each iteration of the for loop.
The printf statement is executed as long as the value of j is greater than or equal to zero. Thus, j assumes values as 100, 90, … , 0. These values are printed using a printf statement as shown below.
#include<stdio.h> void main() { int j; clrscr(); printf("Print integer number from 100 to 0 in steps of -10 :\n"); for (j = 100; j >= 0; j -= 10) { printf("%d ", j); } getch(); }