len wrote:
>
> 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.
>


STDOUT.sync=true
print '>> Please enter amount: $'
resp = STDIN.gets.chomp
puts resp  # echo input
puts "\nYour acount balance is below $" << resp << "  :-?"

#-> Please enter amount: $12
#->
#-> Your acount balance is below $12  :-?


daz