int main (int argc, char * argv[]) { char *ptr; int total = 0; int i = 0; if (argc != 2) { printf("Enter only two arguments to the program.\n"); return(-1); } ptr = argv[1]; while (ptr[i] != 0) { total = total * 10 + ptr[i] - '0'; i++; } printf("Original number: %d\n", total); total = total * total; printf("Original number squared: %d\n", total); return (0); }