Ruby program to calculate the base 10 logarithm of the given value
print "Enter value: ";
num = gets.chomp.to_i;
log10 = Math.log10(num);
print "Base 10 logarithm is: ",log10;
Output:
Enter value: 216
Base 10 logarithm is: 2.3344537511509307
