## Ruby Program to Convert a Number Into a Rational Number

Ruby program to convert a number into a rational number # Ruby program to convert a # number into rational number print "Enter number: "; num = gets.chomp.to_f; result =…

## Ruby Program to Find the Absolute Value of the Given Number

Ruby program to find the absolute value of the given number # Ruby program to find the # absolute value of the given number print "Enter number: "; num =…

## Ruby Program to Convert an Integer Number Into a String

Ruby program to convert an integer number into a string # Ruby program to convert an # integer number into string num = 10; result = num.to_s(); print "String: ",result;…

## Ruby Program to Initialize and Print a Complex Number

Ruby program to initialize and print a complex number # Ruby program to initialize and # print a Complex number num = Complex(21, 18); result = num.to_c(); print "Complex number:…

## Ruby Program to Convert the String Into a Floating-Point Number

Ruby program to convert the string into a floating-point number # Ruby program to convert the string # into a floating-point number str = "10.5"; result = str.to_f(); print "Result:…

## Ruby Program to Convert a Number Into a Complex Number

Ruby program to convert a number into a complex number # Ruby program to convert a number # into a Complex number print "Enter number: "; num = gets.chomp.to_f; result…

## Ruby Program to Find the Hyperbolic Arctangent of the Given Value

Ruby program to find the hyperbolic arctangent of the given value # Ruby program to find the hyperbolic arctangent # of the given value print "Enter value: "; value =…

## Ruby Program to Find the Hyperbolic Arccosine of the Given Value

Ruby program to find the hyperbolic arccosine of the given value # Ruby program to find the hyperbolic arccosine # of the given value print "Enter value: "; value =…

## Ruby Program to Convert the String Into an Integer

Ruby program to convert the string into an integer # Ruby program to convert the # string into an integer str = "10.5"; result = str.to_i(); print "Result: ",result; Result:…

## Ruby Program to Find the Hyperbolic Arcsine of the Given Value

Ruby program to find the hyperbolic arcsine of the given value # Ruby program to find the hyperbolic arcsine # of the given value print "Enter value: "; value =…