#include <stdio.h>
#include <stdlib.h>
/* Puzzle A04 -- print the integers from -7 to +7, one per line */
int main(int argc, char *argv[])
{
int j;
for (j= -7; j<= 7; j++ )
{
printf("%3d\n", j);
}
return 0;
}
Comments: The above for statement is the only
sensible way to do this.