Make a program that displays the first 10 Fibonacci numbers (1, 1, 2, 3, 5, 8, 13, 21, 34, and 55). Notice that beginning with the third number in the series, each Fibonacci number is the sum of the prior two numbers. Write two versions of the code: one using the while statement, and the other using the for statement. The Fibonacci numbers should appear twice on the screen.
Fibonacci series works on the the number series. It basically add the two numbers and third number is the sum of first two... View the full answer