Well in my main function, I have a while loop:
Code:while (1) { printf("Enter a command: "); fgets(command, sizeof(command), stdin); command[strlen(command) - 1] = '\0'; if (sscanf(command, "%d,%d", &A, &B) == 2) { int i; for (i = A; i < B; i++) { findAmicable(i); } } }