How to write a C program using the fork() system call that generates the Fibonacci sequence in the
- by Ellen
The problem I am having is that when say for instance the user enters 7, then the display shows:
0 11 2 3 5 8 13 21 child ends.
I cannot seem to figure out how to fix the 11 and why is it displaying that many numbers in the sequence! Can anyone help?
The number of the sequence will be provided in the command line. For example, if 5 is provided,…