#include /* Print the squares from 0 upwards Name the file squares.c Usage: gcc -o squares squares.c squares .. or squares n RPJ 28xii10 */ int main(argc, argv) int argc; char * argv[]; { int i; int n = 10; /* default */ if (argc > 1) n = atoi(argv[1]); for (i = 0; i < n; i++) { printf("%d squared is %d\n", i, i*i); } }