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

Answers

Answered by Steve
google is your friend. Use it.

http://www.schoolfreeware.com/QBasic_Tutorial_38_-_Making_A_Function_-_QB64.html
Answered by Helpful Dude
^
|
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!

Related Questions