|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 , would be really apprecciated. thanks. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
> if anyone can , would be really apprecciated.
What does your tutorial say about simple operations like print (40 + 2).to_s ? |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 , would be really apprecciated. > > thanks. > Welcome to Ruby! Instead of answering your question directly, let me point you to this tutorial: http://pine.fm/LearnToProgram/. This will answer your question and then some! -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 , would be really apprecciated. > > thanks. How do you sum two numbers by 'inserting' them? -- Posted via http://www.ruby-forum.com/. |
|
![]() |
| Outils de la discussion | |
|
|