Javatpoint Logo
Javatpoint Logo

F# For-Downto-Do Example

F# provides downto keyword to decrement identifier in loop. It decrements after each iteration. It is useful when you want to decrement.

Let's see an example.

Output:

10
9
8
7
6
5
4
3
2
1

F# For-In-Do Loop Example

F# provides for-in-do loop which allows iterating data collections like: list, set, sequence, array etc.

Output:

Next TopicF# while loop




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA