Mega Code Archive

 
Categories / Ruby / Language Basics
 

Variables can also be assigned the results of an expression

x = 50 y = x * 100 x += y puts x