Created
February 6, 2012 16:59
-
-
Save jimmykurian/1753311 to your computer and use it in GitHub Desktop.
A basic I/O program written in Ruby.
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
# BasicIO.rb - Jimmy Kurian | |
print "Please enter a past-tense verb: " | |
verb = gets.chomp | |
print "Please enter a noun: " | |
noun = gets.chomp | |
print "Please enter a proper noun: " | |
prop_noun = gets.chomp | |
print "Please enter a an adverb: " | |
adv = gets.chomp | |
print "#{prop_noun} got a #{noun} and\n#{verb} #{adv} around the block.\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment