From: Gunther Diemant Date: 2012-04-05T01:08:33+09:00 Subject: Re: Newbie loops question you must assign the result of int.to_i - 1 to int. And you don't need the .to_i So: int = int -1 (or int -= 1) should do what you want.