Computer Science, asked by adharshaa04, 8 months ago

write a program to print the Fibonacci series upto n.​

Answers

Answered by arpitranjan2008
1

Answer:

I am writing answer in Basic because you didnt specify language.

CLS

A=0

B=1

PRINT A,B

INPUT "ENTER NUMBER OF TIMES THE SERIES WILL RUN=";n

FOR I=1 TO n

S=A+B

PRINT S

B=S

A=B

NEXT I

END

Plz mark brainliest if it help

Answered by Anonymous
2

Answer:

Hi..

It's a python code...

Explanation:

Please refer both the attatchments ..

One is a user defined function ...

The other one is a program..

In the program you can egnore the else statement..

HOPE IT HELPS YOU..

Attachments:
Similar questions