For loop is used to print the numbers 1 through 100 on the screen - C Statement

C examples for Statement:for

Description

For loop is used to print the numbers 1 through 100 on the screen

Demo Code

#include <stdio.h>

int main(void)
{
   int x;/* w w  w. j  a  v  a2s.co m*/
   for (x = 1; x <= 100; x++) printf("%d ", x);

   return 0;
}

Result


Related Tutorials