Guest User

Untitled

a guest
Jan 22nd, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 0.16 KB | None | 0 0
  1. SUB MODULE Fib IMPORT num
  2.  
  3. FibVal <-- 0
  4.  
  5. IF n = 0 THEN
  6. FibVal <-- 0
  7. ELSE
  8. IF n = 1 THEN
  9. FibVal <-- 1
  10. ELSE
  11. FibVal = Fib( n-1 ) + Fib( n-2 )
  12.  
  13. EXPORT FibVal
Add Comment
Please, Sign In to add comment