You'd probably want

puts "Please enter dollar amount":
gets line


Julian.


On 13/08/2005, at 12:41 AM, len wrote:

> len wrote:
>
>> I am trying to write a small little program that will currently  
>> run in
>> a command window (I will convert it later to GUI).
>>
>> How do I request input from the user such as:
>>
>>
>>>> Please enter dollar amount:
>>>>
>>
>> I would like the prompt to display and the user to be able to  
>> enter the
>> data after the prompt.  I thought "gets" would do it but I don't
>> understand how to get the prompt to display.
>>
>> Thanks
>> Len Sumnler
>>
>
> Thanks everyone for your responses.  At this time, and with my  
> level of
> experience (none), I think the option I am looking for is the "puts"
> command.
>
> Again thanks everyone for your responses I have copied all of them for
> future reference.
>
> Len Sumnler
>
>
>