Use for loop to count to 1,000 by fives - C Statement

C examples for Statement:for

Description

Use for loop to count to 1,000 by fives

Demo Code

#include <stdio.h>
int main()//from  w ww.  j  av a2 s .  c  o  m
{
   int i;
   for(i=5;i<=1000;i=i+5)
      printf("%d\t",i);
   return(0);
}

Result


Related Tutorials