write a program to print the Fibonacci series upto n.
Answers
Answered by
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
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
Science,
4 months ago
Social Sciences,
4 months ago
Political Science,
4 months ago
Math,
8 months ago
English,
8 months ago
Science,
11 months ago
Sociology,
11 months ago