Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.25 KB | None | 0 0
  1. open System
  2.  
  3. let GenerateSequence num1, num2, iterations =
  4.     printf "%d" (num1 + num2)
  5.     if iterations>0 then
  6.         GenerateSequence num2, (num1 + num2), iterations - 1
  7.  
  8. [<EntryPoint>]
  9. let main argv =
  10.     GenerateSequence 0, 1, 256
  11.     0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement