fork download
  1. /* This program will prompt for the number of times */
  2. /* a loop will be executed. It shows how to print */
  3. /* a loop going from 1 to the loop count and */
  4. /* vice versa from the loop_count to 1. */
  5.  
  6. #include <stdio.h>
  7. int main ()
  8. {
  9. int x; /* loop index */
  10.  
  11. printf ("\nIncrementing; \n");
  12. for ( x = 0; x < 5; x++ ){}
  13. {
  14. printf ( "...%i", x );
  15. }
  16.  
  17. return (0);
  18.  
  19. }
Success #stdin #stdout 0.01s 5288KB
stdin
5
stdout
Incrementing; 
...5