Last active
August 29, 2015 14:01
-
-
Save StephenFiser/916d8fb0993e117935aa 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
p "Enter a number: " | |
first = gets.chomp.to_i | |
p "Enter a second number: " | |
second = gets.chomp.to_i | |
def multiply(num1, num2) | |
num1 * num2 | |
end | |
answer = multiply(first, second) | |
p "#{first} times #{second} equals #{answer}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment