Simple for statement
Posted by JanWan
Last Updated: March 03, 2012
#include<stdio.h>

int count;

main()
{
/* print the number from 1 through 20 */
for (count = 1; count <= 20; count++)
printf("%d\n", count);
return 0;
}

Related Content