box-o-sand/wikibooks-tutorial/quiz.rb

9 lines
127 B
Ruby
Raw Normal View History

2011-01-03 19:01:42 +00:00
name = 'Charlie Brown'
puts <<"QUIZ"
Student: #{name}
1.\tQuestion: What is 4+5?
\tAnswer: The sum of 4 and 5 is #{4+5}
QUIZ