Created
October 5, 2019 14:05
-
-
Save OnurGumus/e9fb49dd084ec4714ce172c8e645f54b to your computer and use it in GitHub Desktop.
kick start week 2 functional break
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mutable cont = true | |
let mutable init = 1001 | |
while cont do | |
if init % 37 = 0 then | |
printf "%i" init | |
cont <- false | |
init <- init + 1 | |
let rec loop init = | |
if init % 37 = 0 then | |
printf "%i" init | |
() | |
else | |
init + 1 | |
|> loop | |
loop 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment