Simple for loop in C

#include <stdio.h>
 
int main(void)
{
  int i;
 
  /*loop is executed 10 times*/
 
  for (i=1; i<=10; ++i)            /* i starts at 1 and goes up to 10*/
  {
    printf ("number = %i\n", i);
  }
 
  return 0;
}
Creative Commons License Valid CSS Valid XHTML 1.0 Driven by DokuWiki Powered by PHP Powered by Apache get firefox!! kgareth.com Recent changes RSS feed