Asked by mark
rem prints fibonacci series
cls
a=2
b=1
for p = 1 to 5
print a
print b
a=a + b
b=b + a
next p
end
I have done this program. How do you do it using modular programming.. FUNCTION...END FUNCTION???? I tried but it didn't work
cls
a=2
b=1
for p = 1 to 5
print a
print b
a=a + b
b=b + a
next p
end
I have done this program. How do you do it using modular programming.. FUNCTION...END FUNCTION???? I tried but it didn't work
Answers
Answered by
Steve
google is your friend. Use it.
http://www.schoolfreeware.com/QBasic_Tutorial_38_-_Making_A_Function_-_QB64.html
http://www.schoolfreeware.com/QBasic_Tutorial_38_-_Making_A_Function_-_QB64.html
Answered by
Helpful Dude
^
|
What that guy said.
|
What that guy said.
Answered by
mark
thanks steve sir
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.