Mega Code Archive

 
Categories / Ruby / Statement
 

Like while, you have another form you can use with untilathat is, with beginend

weight = 150 begin   puts "Weight: " + weight.to_s   weight += 5 end until weight == 200