how do we make sure that when process only creates one child and control the total number of processes
for (int i = 0; i < iterations; i++) {
        if (created == 0){
            int created = fork();
            if (created < 0) {
                perror("fork");
                exit(1);
            } else if (created > 0) {
                wait(&waitstatus); 
            }
        }
        
        printf("ppid = %d, pid = %d, i = %d\n", getppid(), getpid(), i);
    }
