Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,10 +1,11 @@
|
|||
puts 'Enter x and y'
|
||||
x=gets.to_i # to check errors, use x=Integer(gets)
|
||||
y=gets.to_i
|
||||
x = gets.to_i # to check errors, use x=Integer(gets)
|
||||
y = gets.to_i
|
||||
|
||||
puts "Sum: #{x+y}",
|
||||
"Difference: #{x-y}",
|
||||
"Product: #{x*y}",
|
||||
"Quotient: #{x/y}", # truncates towards negative infinity
|
||||
"Remainder: #{x%y}", # same sign as second operand
|
||||
"Quotient: #{x/y}", # truncates towards negative infinity
|
||||
"Quotient: #{x.fdiv(y)}", # float
|
||||
"Remainder: #{x%y}", # same sign as second operand
|
||||
"Exponentiation: #{x**y}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue