hi, i’m a noob to ruby and i have read a few things about it.
id like to know how to make a program that sums two numbers by
inserting them and then ruby displays them.
if anyone can help, would be really apprecciated.
thanks.
hi, i’m a noob to ruby and i have read a few things about it.
id like to know how to make a program that sums two numbers by
inserting them and then ruby displays them.
if anyone can help, would be really apprecciated.
thanks.
Ronald wrote:
hi, i’m a noob to ruby and i have read a few things about it.
id like to know how to make a program that sums two numbers by
inserting them and then ruby displays them.if anyone can help, would be really apprecciated.
thanks.
Welcome to Ruby!
Instead of answering your question directly, let me point you to this
tutorial: Learn to Program, by Chris Pine. This will answer your question
and then some!
Ronald wrote:
hi, i’m a noob to ruby and i have read a few things about it.
id like to know how to make a program that sums two numbers by
inserting them and then ruby displays them.if anyone can help, would be really apprecciated.
thanks.
How do you sum two numbers by ‘inserting’ them?
7stud – wrote:
How do you sum two numbers by ‘inserting’ them?
I think what he means is that he wants to ‘get’ two numbers from user
input, perform the math, and then ‘puts’ the product/sum
The suggestion to read a few tutorials is definitely valid; the OP
should also have a look at some of the links below (some are for Rails,
most are just Ruby):
http://wiki.rubyonrails.org/rails/pages/Tutorial
http://www.ruby-lang.org/en/documentation/quickstart/
http://www.poignantguide.net/ruby/
http://typosphere.org/articles/2007/08/26/screenshots
http://mongrel.rubyforge.org/
http://developer.apple.com/tools/rubyonrails.html
http://www.caliban.org/ruby/rubyguide.shtml
http://sl33p3r.free.fr/tutorials/rails/wiki/wiki-en.html
http://betterexplained.com/articles/starting-ruby-on-rails-what-i-wish-i-knew/
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs