Arithmetic/Integer: Difference between revisions

Content added Content deleted
m (Attempt to fix 'orphaned' status)
No edit summary
Line 165: Line 165:
## Only used to keep the display up when the program ends
## Only used to keep the display up when the program ends
raw_input( )
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]]==
==[[Scheme]]==