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

digital marketing ppt-u1

SOFTWARE

cn lab

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

DS-Record-mca-04) write a program for evaluating a given postfix expression using stack.

DBMS Degree Lab Records

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

Unit-1 Foundations of Software Systems and Blockchain

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