While Loop Example in F#


This content was proof-read by Grammarly. You can Try Grammary for FREE

While Loop Example in F#

// AbundantCode F# Tutorials and Code snippets
open System
[<EntryPoint>]
let main argv =
    let mutable indexer = 10
    while indexer <=50 do
        Console.WriteLine(indexer)
        indexer <- indexer + 1
    let retval = Console.ReadLine()
    0 // return an integer exit code
%d bloggers like this: