I am new in Ruby, i am trying to declare a simple variable in ruby which can store int
type value.
I have tried the following codes
var=5
puts var
and
@var=5
puts @var
The output in both program is 5
, can anybody explain what is the difference in both type of code.