F# program to print first n Natural Numbers
Program
open System
Console.WriteLine("Print the first n natural numbers");
Console.WriteLine("How many numbers to print : ");
let counter= Convert.ToInt32(Console.ReadLine());
for i = 1 to counter do
Console.Write("{0} ",i);
Output
Print the first n natural numbers
How many numbers to print :
10
1 2 3 4 5 6 7 8 9 10