ruby absolute value
# Ruby program Integer abs() function
# Initializing the numbers
num1 = -21
num2 = 21
num3 = 0
num4 = -100
# Printing the absolute value of integers
puts (num1).abs
puts (num2).abs
puts (num3).abs
puts (num4).abs
ruby absolute value
# Ruby program Integer abs() function
# Initializing the numbers
num1 = -21
num2 = 21
num3 = 0
num4 = -100
# Printing the absolute value of integers
puts (num1).abs
puts (num2).abs
puts (num3).abs
puts (num4).abs
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us