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

3 answers

google is your friend. Use it.

http://www.schoolfreeware.com/QBasic_Tutorial_38_-_Making_A_Function_-_QB64.html
^
|
What that guy said.
thanks steve sir
Similar Questions
    1. answers icon 0 answers
    1. answers icon 0 answers
    1. answers icon 2 answers
  1. QuestionWhich one of these is the correct way to display the variable var, containing number 1 as value, to the console?(1
    1. answers icon 1 answer
more similar questions