## Ruby program to calculate the logarithm gamma of the given number

```
# Ruby program to calculate the
# logarithm gamma of the given number
print "Enter Number: ";
num = gets.chomp.to_i;
result = Math.lgamma(num);
print "Result is: ",result;
```

```
Enter Number: -25
Result is: [Infinity, 1]
```

Table of Contents