Skip to content

Instantly share code, notes, and snippets.

@bennage
Created September 29, 2011 03:57
Show Gist options
  • Save bennage/1249942 to your computer and use it in GitHub Desktop.
Save bennage/1249942 to your computer and use it in GitHub Desktop.
Adah's First Ruby Script
# adah's first program
puts 'what is the number to divide?'
x=gets.to_i
puts 'what do you want to divide it by?'
y=gets.to_i
puts 'here is the answer.'
puts x/y
r=x%y
if r != 0 then
puts 'The remainder is'
puts r
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment