<!-- hamlet
<!-- copytar
examples/                                                                                           0040755 0002611 0000666 00000000000 06355550632 0013537 5                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        examples/for2.c                                                                                     0100644 0002611 0000666 00000000332 06355544156 0014552 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program illustrates some properties of for loops.

   Created:  Joe Zachary, October 13, 1992
   Modified:
*/

#include <stdio.h>

void main () {
  
  for (;;)
   {
     printf("Hello\n");
   }
}
                                                                                                                                                                                                                                                                                                      examples/while2.c                                                                                   0100644 0002611 0000666 00000000404 06355544160 0015067 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program illustrates some properties of while loops.

   Created:  Joe Zachary, September 19, 1992
   Modified:
*/

#include <stdio.h>

void main () {
  
  int x = 0;

  while (x < 5) {
    printf("x = %d\n", x);
    x = x + 1;
  }
    
}
                                                                                                                                                                                                                                                            examples/for.c                                                                                      0100644 0002611 0000666 00000000376 06355544156 0014500 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program illustrates some properties of for loops.

   Created:  Joe Zachary, October 13, 1992
   Modified:
*/

#include <stdio.h>

void main () {
  
  int x;

  for (x = 0; x < 5; x = x+1)
    {
      printf("x = %d\n", x);
    }
}
                                                                                                                                                                                                                                                                  examples/for3.c                                                                                     0100644 0002611 0000666 00000000554 06355544157 0014562 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program illustrates some properties of for loops.

   Created:  Joe Zachary, October 13, 1992
   Modified:
*/

#include <stdio.h>

void main () {
  
  int i, j;

  for (i = 1, j = i; i <= 100; i = i*2, j = j+10) {
    printf("i = %d, ", i);
    printf("j = %d\n", j);
  }

  printf("The final value of i was %d, and of j was %d\n", i, j);

}
                                                                                                                                                    examples/for4.c                                                                                     0100644 0002611 0000666 00000000374 06355550627 0014562 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program illustrates some properties of for loops.

   Created:  Joe Zachary, October 13, 1992
   Modified:
*/

#include <stdio.h>

void main () {
  
  int i;

  for (i = 1; i <= 10; i++)
    {
      printf("i = %d\n", i);
    }
}
                                                                                                                                                                                                                                                                    examples/increment.c                                                                                0100644 0002611 0000666 00000000576 06355550630 0015672 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program illustrates some properties of the ++ operator.

   Created:  Joe Zachary, October 13, 1992
   Modified:
*/

#include <stdio.h>

void main () {
  
  int i = 1;

  printf("i = %d\n", i++);
  printf("i = %d\n", ++i);
  printf("i = %d\n", i++);
  printf("i = %d\n", i++);
  printf("i = %d\n", ++i);
  printf("i = %d\n", ++i);

  printf("i = %d\n", i);

}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  