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

e-com sem-3

SOFTWARE

e com partical

unit-1 E- Commerce

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

Unit-V: Image Manipulations, Audio and Video & Introduction to JavaScript

Unit-II: HTML Coding Standards & Elements

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

HTML Degree Unit-1

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