/** * count-to.c * A program that reads its input from the command line and counts. */ // +---------+-------------------------------------------------------- // | Headers | // +---------+ #include #include // +------+----------------------------------------------------------- // | Main | // +------+ int main (int argc, char *argv[]) { int limit = atoi (argv[1]); int i; for (i = 0; i <= limit; i++) printf ("%d ", i); printf ("\n"); return 0; } // main