## Introduction

A graphical representation of an Algorithm is a Flowchart. It is a standard diagram to understand the algorithm. As the famous saying "A picture is worth a thousand words" it is explained in this video.

What is Algorithm video: www.youtube.com/watch

#whatis #AaliVirtualAcademy #learning #teaching #knowledge #CPP #Urdu #hindi #youtubevideos #youtuber #computerscience #itservices #computerprogramming #programming

An easy way to learn Computer Science basics in Urdu/Hindi.

Please like, share and Subscribe to my channel.

Your comments are very helpful so please comment with your suggestions.

Email: industechnologiesgbl@gmail.com

Facebook Page: www.facebook.com/Indus-Technologies-102611774752010

Instagram: www.instagram.com/indus_technology/

## Content

Welcome back, uh, we are discussing about flowcharts.

And in this tutorial, we will try to find out fibonovsky series fibonacci series.

And what is fibonacci series? It is the series like this.

I will draw it first.

I will write the this series first how it is written.

I will explain how it is written.

Suppose we have to start with 0 0.

Then 1 0 and 1.

These are the first two.

These are the first two numbers of the series zero comma one.

Then it is now the time to write the third third number of the series.

Okay, third element of the series.

What will be the third element of the series? It will be the sum of the first two elements.

It will be zero plus one that is equal to one.

Okay.

Now it is time to write the fourth element of the series.

What will be the fourth element of the series? Fourth element of the series will be the addition of the first two addition of not first two edition of previous two that will be one plus one.

It will be two.

Now it is time to write next number.

Next number will be equal to the sum of last two digits.

Last two numbers, not digits.

It will be last two numbers.

Two, plus one is equal to three three, plus two is equal to five.

Five, plus three is equal to eight.

It will go on go on.

This is this is called as the fibonacci series, and we have to, and we have to draw a flowchart to generate this series.

So I will write here start start.

Now I will take a variable a or x or any variable.

I will write here read a, but a will be read as 0.

We will initialize it to 0 a is equal to 0.

Then I will write read b is equal to 1.

So I have written a and b, a will be 0 and b will be 1.

Then then I have to first first I have to print this 0 and 1.

I will print this 0 and 1 print, a comma b, print, a comma b.

This will get printed so whatever will be printed.

I will write it here.

So what is stored in a it is 0 stored in a what is stored in b.

It is 1 stored in b.

Now I have.

I am writing print a comma b.

I will write here.

I have written print a comma b.

Then a is 0.

Comma b, is 1.

Both will get printed then after that, I will declare another variable that is c in which I will assign the sum of a and b c is equal to a plus b.

I have written c is equal to a plus b.

I have not printed it yet.

I have written just c is equal to a plus b.

Then suppose I have to generate a fibonacci series up to up to suppose up to 13 up to 13 okay, up to 13, not greater than 13.

I will make here a condition.

I will write if c if c is less than or equal to 13 less than or equal to 13, whether it is less than or it is equal to 13.

If c is less than or equal to 13.

Yes, if it is, yes, what will I have to do if it is? Yes, I will make yes on this side.

And no on this side, if it is, yes, if it is, yes, I have to first print previous value of c.

I have to print.

I will write here, print c.

Then if print c, then previous value of c is 0, plus 1 and c will get print will get printed here.

It will be one, print c.

But after printing c, I have to replace the value of a and b I will write now a will be this previously a was this.

A was zero.

Now a will be replaced with this one and b will be this.

So a is equal to b as this was initially.

It was a it was b.

And it was c as I have written parentheses.

Now I have to written a will be equal to b, a will get replaced by b.

I mean to say, a will get this one that is the value of b, a will be this one and b will be this one, which is holded by c and b will be this.

Okay in generally.

It was 0 1.

Now it is 1 1 initially it was 0 1.

Now it is 1 1.

So I have written print c here.

Now it will be a is equal to b.

Okay, this is first and then b is equal to c.

Then we have to repeat the whole process whole steps we have to repeat.

We have to repeat from here.

Okay, why why I have to repeat because now I have written a is equal to b and b is equal to c.

Now again.

Now, again, c will be the sum of these new a and b.

So I have written c is equal to a plus b.

Now, c will be.

This is new a a and new b and c will be this one, plus this one that will be two.

Okay, but this is not printed right now.

This will be hold by memory c is now 2.

So I am writing here if c is less than or equal to 13 2, yes, 2 is less than or equal to 13.

Yes.

Now it will get printed 2 will get printed here.

Now again, a is equal to b.

Now, a will be this b.

A was 1.

Now b is 1 and c is 2.

A is equal to b.

A will get this one, whichever is holded by b.

So a will be one b is equal to c.

B will get the c c is two b is equal to this two.

Okay, then it will again.

Go here.

C is equal to a plus b.

C is equal to a plus b.

It will get three okay.

And that three will get printed.

It will first check whether that 3 is less than or equal to 13.

Yes, then print c that three will get printed here.

I will.

I will try to draw a memory map of this again.

I will try to draw it again.

This was just example.

I will draw it again at no if it is, no, then it will get stopped stop now.

I will draw a memory map out of it out of this initially, this will be whatever will whatever I have to print.

I will print it here.

Whatever I have to print.

I will print it in this section, and I will draw a memory map here whatever is not printed whatever it is calculated only that will be written here and whatever will be the output that is printed that I will write here.

So initially I have to write a is equal to zero.

Suppose I have write a b.

Third variable.

We are using is c.

We have three variables a b and c, a b and c.

Now read a is equal to 0.

We have in we have initialized a as 0 initially and b, as 1 b will be 1 then print a and b now whatever will be printed.

I will print here, print a and b, a is 0 and b is 1 0 and 1 will be printed here.

Now c is equal to a plus b.

This is memory where I have to write c is equal to a plus b, where I have to update the value of c, a plus b, 0, plus 1 is equal to 1.

Okay, if c is greater than less than or equal to 13.

Yes, it is less than 13.

Then we have to go to yes, condition.

Print.

C.

C is holding one, and that will be printed here.

Okay.

Now, let's, see now when I have printed c, then I have after that arrow is arrow is showing me I have to go to this step.

And this is a is equal to b.

I have to assign b into a a will be equal to b.

So a here 0 will be equal to b b is 1 so previous a value will get cancelled, and it will be replaced by this b value.

Okay, a is now equal to b b is equal to c previous value of b will get replaced by the c.

C is holding 1.

Now previous value of a b was 0 1.

Now it is 1 1.

Now I have to repeat it again from this line.

And I have to go here.

This is c is equal to a plus b.

C will be equal to a plus b 1, plus 1, previous value will be cancelled and new value will be 1.

Plus 1 that is 2.

Okay, if c is less than or equal to 13.

Yes, c is less than or equal to 13 because it is 2.

It is not 13.

So it will go to this side.

Print.

C.

C is holding 2.

This 2 will be printed here.

Ok, a is equal to b b is equal to c.

A is 1 a is equal to b b is also one a will get replaced by the value of b that is one and b is equal to c.

B is one, and that will get replaced with the previous value of uh that will get uh.

The previous value of b will get replaced with the new value of c.

And this value will get replaced by 2 because c is 2.

Now again, I have to go to this step.

And I have to again, write c is equal to a plus b.

C is here c will be a plus b 1, plus 2.

Currently value of a is 1 and value of b is 2.

And that will be 2 plus 1 that is 3.

Okay, if c is less than or equal to 13.

Yes, c is less than or equal to 13.

Yes.

So I have to go to this.

I have to write print.

C.

C will get printed here.

I have to print c here.

So I have to write here value of c is 3.

I have to write here 3.

Okay.

Then a is equal to b.

A will get replaced by this b.

It will become 2 and b is equal to c and b will become 3.

Okay, again.

I have to repeat from here.

C is equal to a plus b.

C is equal to a plus b.

A plus b is equal to 5 previous value of c will get replaced by 5.

Okay? Then I have to check whether c is less than or equal to 13.

Yes, 5 is less than 13.

Yes, print.

C.

C will get printed here.

C will get printed here.

It five will get printed here.

Then a is equal to b.

A is two.

It will become three.

Okay, b is equal to b is equal to c.

B is 3.

It will become this 5.

Okay, then again, I have to repeat it from here.

C is equal to a plus b.

Here.

C is equal to this 3.

Plus this 5.

This will become 8.

Okay, if c is less than or equal to 13.

Yes, 8 is less than 13, print c.

Then I have to print.

This 8, this 8 will get printed here.

Ok.

Now a is equal to b.

A is 3, and it will get replaced by value of b value of b is 5.

And we will write 5 here b is equal to c.

B will get replaced by now.

This I have written a is equal to b is equal to this 5 and b is equal to this 8.

Okay, b is equal to c.

Then I will I will check whether uh, I will again.

Go here and I will write.

I will mention c is equal to a plus b.

C is equal to this 5, plus 8, which will be equal to 13.

Then I will check whether c is less than or equal to 13.

Yes, c is less than or equal to it is equal to 13.

Yes.

So it will again.

Go here and print c.

Then I will write c here.

Print c.

13 will be printed here.

A is equal to b is equal to b, 8 and 8 will be replaced with 13.

Okay, b is equal to c.

Then I will go here.

C is equal to a plus b, 13, plus 8 will be equal to, uh.

It will be equal to 21 if c is less than or equal to 13.

This time, the condition is false, and it will go to no.

It will go to no because 21 is not less than or equal to 13.

It is greater than 13.

21 is greater than this 13.

So it will stop here.

Okay.

So fibonacci series is being printed here.

## FAQs

### How do you find the Fibonacci series of 5? ›

The Fibonacci sequence is a type series where **each number is the sum of the two that precede it**. It starts from 0 and 1 usually. The Fibonacci sequence is given by 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, and so on. The numbers in the Fibonacci sequence are also called Fibonacci numbers.

**What number follows 5 and 8 in the Fibonacci series? ›**

The traditional Fibonacci series is 1, 2, 3, 5, 8, **13**, 21, 34, 55 and so on. Each number is the sum of the two preceding numbers.

**Is the Fibonacci sequence the series of numbers 0 1 1 2 3 5 8? ›**

What is the Fibonacci sequence? The Fibonacci sequence is **a famous group of numbers beginning with 0 and 1 in which each number is the sum of the two before it**. It begins 0, 1, 1, 2, 3, 5, 8, 13, 21 and continues infinitely.

**What are the first 5 odd terms in the Fibonacci series? ›**

The odd number fibonacci series is as: **1, 1, 3, 5, 13, 21, 55, 89, 233, 377, 987, 1597**…………. and so on.

**Why is 5 a Fibonacci number? ›**

The Fibonacci sequence is a series of numbers where a number is the addition of the last two numbers, starting with 0, and 1. The Fibonacci Sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55…

**Is every 5th Fibonacci number a multiple of 5? ›**

Theorem 1. **The Fibonacci number F5k is a multiple of 5, for all integers k ≥ 0**. which is a multiple of 5 (since F5n+1 and p are integers). We have shown that if F5n is a multiple of 5, then F5(n+1) is also a multiple of 5.

**Is the number 5 the fifth number in the Fibonacci sequence? ›**

Fibonacci Numbers (Sequence):

1,1,2,3,5,8,13,21,34,55,89,144,233,377,...

**What is the sequence of the number 5 8 13? ›**

The Fibonacci sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34... In this series, **the next number is found by adding the two numbers before it**.

**What is the next number in the sequence 3 5 8 13 21? ›**

Solution: The Fibonacci series is the series of numbers 1, 1, 2, 3, 5, 8, 13, 21, ... Therefore, the next Fibonacci number in the following sequence is **34**.

**What is the sequence of 0 1 1 2 3 5? ›**

The Fibonacci sequence is the series of numbers where each number is the sum of the two preceding numbers. For example, 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, …

### What is the pattern rule for 0 1 3 6 10? ›

triangular numbers: 1, 3, 6, 10, 15, ... (these numbers can be represented as a triangle of dots). The term to term rule for the triangle numbers is to **add one more each time**: 1 + 2 = 3, 3 + 3 = 6, 6 + 4 = 10 etc.

**What is the pattern of 1 1 2 3 5 8 in Java? ›**

Example: Display Fibonacci Series Using for Loop

Fibonacci Series till 10 terms: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, In the above program, **firstTerm and secondTerm are initialized with 0 and 1 respectively (first two digits of Fibonacci series)**. We can also use a while loop to generate the Fibonacci series in Java.

**What are 5 examples of Fibonacci sequence in math? ›**

Understanding the Fibonacci Sequence

Each number is equal to the sum of the preceding two numbers. For example, **0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377**.

**What are the first five terms of Fibonacci sequence 1 1 2 3 and 5 determine the 12th term? ›**

The first 12 terms of the fibonacci sequence are:**1,1,2,3,5,8,13,21,34,55,89,144**.

**What is the sum of the first 5 even numbers? ›**

Explanation: As the Input is 5, the first 5 odd numbers are 1, 3,5,7,9 and sum = 1+3+5+7+9 =25, and the first 5 even numbers are **2,4,6,8,10** and sum = 2+4+6+8+10 = 30.

**How do you find the sum of the first 5 Fibonacci numbers? ›**

On summation of numbers in the sequence, we get, Sum = **0 + 1 + 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 = 88**.

**How do you calculate Fibonacci levels? ›**

The key Fibonacci ratio of 61.8% is found by **dividing one number in the series by the number that follows it**. For example, 21 divided by 34 equals 0.6176, and 55 divided by 89 equals about 0.61798. The 38.2% ratio is discovered by dividing a number in the series by the number located two spots to the right.