Ruby program to calculate the square root of the given number
print "Enter Number: ";
num = gets.chomp.to_f;
SquareRoot = Math.sqrt(num);
print "Square Root is: ",SquareRoot;
Output:
Enter Number: 81
Square Root is: 9.0
