Shotgun Assignment

Submitted By:
pelargir

Difficulty:
Elementary

Tags:
variables

Instructions:
There are many ways to assign variables in Ruby. But can you assign values to multiple variables at once?

Code:
a, b, c = ___

assert_equal a, "eat"
assert_equal b, "chunky"
assert_equal c, "bacon"

Your Solution

Ruby 1.9.3

Back to Problems