Fibonacci:
Ask the user for a positive integer and validate that it is positive, otherwise have the user re-enter until valid. Once validated, given the inputed value, you will display (calculate) the first number inputed fibonacci numbers. For example, if the user enters 5, display "1, 1, 2, 3, 5" ('commas' included). Break out of the switch statement, reset your fibonacci numbers back to their starting values. THen reiterate and display the menu again until the user's choice is to exit.
Example Output:
1. Summation
2. Fibonacci
0. Exit
------------------------
Enter choice: 2 [entered]
Enter a positive number: 5 [entered]
1, 1, 2, 3, 5
1
Expert's answer
2020-03-21T14:45:43-0400
Dear Low Zhi Lok, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments