Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
20.8k views
in Information Technology by (15 points)
edited by

Create an algorithm and a flowchart that will output the Fibonacci series upto a given number.

Please log in or register to answer this question.

1 Answer

0 votes
by (52.8k points)

Flowchart to calculate the fibonacci series

Algorithm of Fibonacci Series

Step 1: START
Step 2: Declare variable n1, n2, sum, n, i
Step 2: Initialize variables:
n1 = 0, n2 = 1, i = 2
Step 3:  Read n
Step 4: Repeat this step until i <= n:
sum = n1 + n2
print sum
n1 = n2
n2 = sum
i = i + 1
Step 5: STOP

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...