Anonymous user
Arithmetic/Integer: Difference between revisions
no edit summary
m (Attempt to fix 'orphaned' status) |
No edit summary |
||
Line 165:
## Only used to keep the display up when the program ends
raw_input( )
==[[Ruby]]==
[[Category:Ruby]]
puts 'Enter x and y'
x=gets.to_i
y=gets.to_i
puts "Sum: #{x+y}",
"Difference: #{x-y}",
"Product: #{x*y}",
"Quotient: #{x/y}",
"Remainder: #{x%y}"
==[[Scheme]]==
|