PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > how does ruby...
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
how does ruby...

Réponse
 
LinkBack Outils de la discussion
Vieux 26/02/2008, 01h59   #1
Ronald
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how does ruby...

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.
  Réponse avec citation
Vieux 26/02/2008, 02h06   #2
Phlip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how does ruby...

> if anyone can , would be really apprecciated.

What does your tutorial say about simple operations like print (40 + 2).to_s
?


  Réponse avec citation
Vieux 26/02/2008, 02h07   #3
Tim Hunter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how does ruby...

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

  Réponse avec citation
Vieux 26/02/2008, 02h12   #4
7stud --
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how does ruby...

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/.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11332 seconds with 13 queries