-
-
Save mistyrinth/6d348abf2e82d789a824d6163a23362b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num1 = 10 | |
num2 = 3 | |
puts "#{num1} / #{num2} = #{num1 / num2}" | |
puts "#{num1}.div(#{num2}) = #{num1.div(num2)}" | |
puts "#{num1}.divmod(#{num2}) = #{num1.divmod(num2)}" | |
puts "#{num1}.fdiv(#{num2}) = #{num1.fdiv(num2)}" | |
puts "#{num1}.quo(#{num2}) = #{num1.quo(num2)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment