This file contains hidden or 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
puts "This is your boss. What did you want to meet about?" | |
response = gets.chomp | |
puts "WHADDAYA MEAN \"" + response.upcase + "\"" + "?!? YOU\'RE FIRED!!" |
This file contains hidden or 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
puts "What is your first name?" | |
first=gets.chomp | |
puts "What is your middle name?" | |
middle=gets.chomp | |
puts "What is your last name?" | |
last=gets.chomp | |
puts "Hello " + first + " " + middle + " " + last + "." | |
name_length = first.length + middle.length + last.length | |
puts "You have " + name_length.to_s + " letters in your name." |
This file contains hidden or 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
puts "What is your most favoritest number in the world?" | |
fav_number = gets.chomp | |
puts "Your favorite number is " + fav_number + "? Really?" | |
new_fav = fav_number.to_i + 1 | |
puts "I think " + new_fav.to_s + " is a much better number." |
This file contains hidden or 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
puts "What is your first name?" | |
first=gets.chomp | |
puts "What is your middle name?" | |
middle=gets.chomp | |
puts "What is your last name?" | |
last=gets.chomp | |
puts "Hello " + first + " " + middle + " " + last + ". You have an INCREDIBLE name!" |
This file contains hidden or 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
puts "Hi! Say something to Grandma below." | |
text = nil | |
while true | |
text = gets.chomp | |
if text == "BYE" | |
puts "Grandma didn\'t hear you. Say \"BYE\" again." | |
elsif text == text.upcase |
NewerOlder