JAVA-Record-01)Write a Java program to print Fibonacci series using for loop.

 01) AIM:-

Write a Java program to print Fibonacci series using for loop.

 Algorithm:

  1. Start
  2. Declare a variable for the total number of terms.
  3. Ask the user to initialize the number of terms.
  4. Print the first and second numbers of the series.
  5. Use a for loop to print the Fibonacci series up to that number of terms.
  6. Update the series terms in each iteration.
  7. Print the Fibonacci series.
  8. Stop

 Flow-Chart

Fibonacci Series Flowchart

 Code:01

Output:01
Output:02

 

 

 

 

Comments

Popular posts from this blog

SOFTWARE

digital marketing ppt-u1

Unit 2: Foundations of Ownership, Security Related Concepts in Blockchain

Unit-1 Foundations of Software Systems and Blockchain

Computer Operations and Performing - D L Unit-1-1

Access the Internet to Browse Infromation & E-Mail Operation- D L Unit-2-1

6)what are the various service of internet and protocols ICT-unit-1

Unit-III: Cascading Style Sheets (CSS) - HTML

MS Word Unit 1-1

Unit-II: HTML Coding Standards & Elements