Question: In this assignment you are asked to write a Python program to generate the first n Fibonacci numbers, where n is the number that user
In this assignment you are asked to write a Python program to generate the first n Fibonacci numbers, where n is the number that user gave as input.
The Fibonacci sequence is characterized by the fact that every number after the first two is the sum of the two preceding ones. Choose the two starting numbers as 0 and 1. The sequence will be like,
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,
If the user provides a negative integer, ask him/ her to input a positive integer and read the input again until a positive integer is provided.
If the user gave 0 as input the program should terminate printing a line Minimum value not matched, Printing Nothing.
Also, skip printing the ith Fibonacci sequence if it is DIVISIBLE by 9.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
