F# program to perform Boolean Operations
Program
open System
let booleanOp a b =
if (a = 0 && b = 0) then Console.WriteLine("Both first and second numbers are equal to 0\t");
else if (a = 0 || b = 0) then Console.WriteLine("Either first and second numbers is equal to 0\t");
else
Console.WriteLine("Neither first or second number is equal to 0\t");
Console.Write("Enter the first number:\t")
let a = Int32.Parse(Console.ReadLine())
Console.Write("Enter the second number:\t")
let b = Int32.Parse(Console.ReadLine())
// Call booleanOp function with arguments a b
booleanOp a b
Output 1
Enter the first number: 0
Enter the second number: 0
Both first and second numbers are equal to 0
Output 2
Enter the first number: 5
Enter the second number: 0
Either first and second numbers is equal to 0
Output 3
Enter the first number: 67
Enter the second number: 99
Neither first or second number is equal to 0