#include main(argc, argv) int argc; char **argv; { int i; int j, top; i = 3; if (argc != 2) { fprintf(stderr, "Usage: spin iter-before-write\n"); exit(1); } top = atoi(argv[1]); if (top <= 0) { while (1) { i = -i; } } else { while (1) { for (j = 0; j < top; j++) i = -i; write(1, "a", 1); } } }