03_printing_quotes.rb
#Problem:
# Quotation marks are often used to denote the start and end of a string. But sometimes we need to print out the quotation marks themselves by using escape characters.
#
# Create a program that prompts for a quote and an author. Display the quotation and author as shown in the example output.
Quotation marks are often used to denote the start and end of a string. But sometimes we need to print out the quotation marks themselves by using escape characters.

Create a program that prompts for a quote and an author. Display the quotation and author as shown in the example output.
Quotation marks are often used to denote the start and end of a string . But sometimes we need to print out the quotation marks themselves by using escape characters . Create a program that prompts for a quote and an author . Display the quotation and author as shown in the example output .
def printing_quotes
  puts "What is the quote?"
  quote = gets.chomp
  puts "Who said the quote?"
  name = gets.chomp
  puts name + " says, "  + "\"" + quote + "\""
end
def printing_quotes puts "What is the quote?" quote = gets . chomp puts "Who said the quote?" name = gets . chomp puts name + " says, " + "\"" + quote + "\"" end
Problem:
Quotation marks are often used to denote the start and end of a string.
Problem : Quotation marks are often used to denote the start and end of a string .
# puts name + " says, "  + "\"#{quote}\""