Genova - A3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Start

ALGORITHM:
1. Read value of R
2. Take value of area of the radius
R=0
3. Check if test R is less than 5
4. If Test R is true, add 1 to R
5. Multiply 3.1416 to the value

A= 3.1416 6. Print the computed area and radius

TRUE

R<5 R=R+1

FALSE A=3.1416*R*R

End
Print
Area &
Radius
ALGORITHM:
1. Read value of N

Start 2. Let A be equal to 0 and Let B be equal to 1


3. Test if N is greater than 0, if Yes, Let C be
equal to A plus B
4. Print value of A
Read N
5. Let A be equal to B, Let B be equal to C
and Let N equal to N minus 1
6. Print “Fibonacci Series”
Let A=0 7. If N is greater than 1, Print “Please enter a
Let B=1 number greater than 1”
8. Print End

No Print “Please
Is N > = A? enter a number
greater than 1”

Yes

C=A+B

Print value of A

Let A = B
Let B = C
Let N = N - 1

Print
“Fibonacci End
Series”

You might also like