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

e-com sem-3

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

Unit-1 Foundations of Software Systems and Blockchain

unit-1 E- Commerce

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

e com partical

Unit-II: HTML Coding Standards & Elements

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

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