
Variables and assignment
view image
Whenever we have putsed a string or a number, the thing we putsed is gone. What mean is, if we
wanted to print something out twice, we would have to type in twice:
suppose u have long content for print 10 time
than
content ='Variables and assignment
Whenever we have putsed a string or a number, the thing we putsed is gone. What mean is, if we
wanted to print something out twice, we would have to type in twice:
suppose u have long content for print 10 time
than'
contentt = 'My name is Anand Kumar Pathak i am trying to learn Ruby language really this language is
easy according other language, i also try to learn ruby on rails'
your ruby code
content ='Variables and assig
nment the thing we
putsed is gone.
What mean is, if we
wanted to print
something out twice,
we would have to type
in twice: suppose u
have long content for
print 10 time than'
contentt =
contentt = 'My name is
Anand Kumar Pathak
i am trying to learn
Ruby language really
this language is easy
according other
language, i also try to
learn ruby on rails'
puts content
puts contentt
puts contentt
your result
>ruby 1.rb
Variables and assig
nment the thing we
putsed is gone.
What mean is, if we
wanted to print
something out twice,
we would have to type
in twice: suppose u
have long content for
print 10 time than
My name is
Anand Kumar Pathak
i am trying to learn
Ruby language really
this language is easy
according other
language, i also try to
learn ruby on rails
My name is
Anand Kumar Pathak
i am trying to learn
Ruby language really
this language is easy
according other
language, i also try to
learn ruby on rails
>Exit code: 0
No comments:
Post a Comment