F# program to Add two numbers using Functions

Program

open System
let add a b  = a + b
Console.Write("Enter the first number:\t")
let first = Int32.Parse(Console.ReadLine())
Console.Write("Enter the second number:\t")
let second = Int32.Parse(Console.ReadLine())
// Function add is called
let sum = add first second;
Console.WriteLine("Sum of two numbers is:\t{0}" ,sum)

Output

Enter the first number: 15
Enter the second number:        30
Sum of two numbers is:  45