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
Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

%d bloggers like this: