Print the numbers 1 through 20 - C Statement

C examples for Statement:for

Description

Print the numbers 1 through 20

Demo Code

#include <stdio.h>

int main( void )
{
    for (int count = 1; count <= 20; count++)
        printf("%d\n", count);

    return 0;/*from   w ww.  j a v a  2  s . c  o m*/
}

Result


Related Tutorials