Advertisement
labyrinth-servers1

Square Root

Mar 27th, 2019
1,585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.21 KB | None | 0 0
  1. open System
  2.  
  3. [<EntryPoint>]
  4. let main argv =
  5.     let seq1 = seq { for i in 1 .. 100 -> (i, i*i) }
  6.     for (a, asqr) in seq1 do
  7.       printfn "%d squared is %d" a asqr
  8.     Console.ReadLine() |> ignore
  9.     0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement