for (i=2; i>=1; i--) { if (!fork ()) printf ("%d\n", -i); else printf ("%d\n", i); }