This program is about using for loops. It asks the user for a number n and prints Fibonacci series with first n numbers.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

This program is about using for loops. It asks the user for a number n and prints Fibonacci series with first n numbers.

Post by answerhappygod »

This Program Is About Using For Loops It Asks The User For A Number N And Prints Fibonacci Series With First N Numbers 1
This Program Is About Using For Loops It Asks The User For A Number N And Prints Fibonacci Series With First N Numbers 1 (44.99 KiB) Viewed 57 times
This program is about using for loops. It asks the user for a number n and prints Fibonacci series with first n numbers. First two terms of the Fibonacci series are 1 and all the following terms are sum of its previous two terms. Please use a for loop to calculate the series. Please see the sample output.

Enter length of the Fibonacci series (3-20) 12 The series is : 1 1 2 3 5 8 13 21 34 55 89 144
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply