beginner Q.

E

Erik Boling

So, when i first started to learn ruby *about a week or two ago*, my
cousin *who showed me ruby* had me start on a program called
hackety-hack, which is i type of tutorial thing, it kind of gives
programs a sort of gui also. But i have noticed you cant do some of the
same commands as on the irb main. In hackety-hack there was an
*ask* command, so you could do things like
var = ask("how old are you")...

Im wondering if/ or what is the acctual *ask* command?? Because im
trying to write a program for my dad *a chef* which vendors have the
cheapest prices, and its getting annoying writing out all their prices
into 2 different arrays. it would be nice if it could be like
Array_1 = ask("put in the 1st vendors prices)
Array_2 = ask("put in 2nd vendors prices) *and then i could go on and
subtract the two arrays*

Sorry if this is a totaly idiotic question :(!?
Much thanx for anyones help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top