assign values of different kinds, such as a string, float, and integer: : Parallel Assignment « Language Basics « Ruby






assign values of different kinds, such as a string, float, and integer:


a, b, c = "cash", 1.99, 100

 

Related examples in the same category

1.Use Parallel Assignment