Ad
Code
Diff
  • greet = "Hello Ruby!"
    
    print           greet, "\n"
    puts            greet
    $stdout.write   greet +"\n"
    $stdout.puts    greet
    $stdout.print   greet, "\n"
    (greet+"\n").each_char {|c| print c}
    • greet = "Hello Ruby!"
    • print greet, "\n"
    • puts greet
    • $stdout.write greet +"\n"
    • $stdout.puts greet
    • $stdout.print greet, "
    • "
    • $stdout.print greet, "
    • "
    • (greet+"\n").each_char {|c| print c}