Commit a30847aa by Đường Sỹ Hoàng

Printing&Printing

parent 01618fc3
Pipeline #99 canceled with stages
in 0 seconds
formatter = "%{first} %{second} %{third} %{fourth}"
puts formatter % {first: 123, second: 345, third: 456, fourth: 678}
puts formatter % {first: "one", second: "two", third: "three", fourth: "four"}
puts formatter % {first: true, second: false, third: true, fourth: false}
puts formatter % {first: formatter , second: formatter,third: formatter, fourth: formatter}
puts formatter % {
first:"I had this thing.",
second: "That you could type up right.",
third: "But it didn't sing.",
fourth: " So i said goodnight."
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment