----- Original Message ----- 
From: "Email55555" <tran55555 / yahoo.com>
> I am newbie in Ruby, I cannot find the bug on my financial program.
> The question is related to local variable in block.
> Here is a quick example:
> 
> a = 5000
> r = 0.06
> p = 100 
> (1..5).each {|i|
>   puts "#{i}\t\#{a}\t#{a*r}\t#{p}" # <-- the #{a} is not print
> correctly, why?

Delete '\' before '#'
#{i}\t\#{a}... => #{i}\t#{a}...

Guaracy
===================
HP: www.guaracy.cjb.net