From: "David A. Black" Date: 2005-08-12T22:35:44+09:00 Subject: Re: Another newbie question --8323328-1636550047-1123853742=:12576 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1636550047-1123853742=:12576" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1636550047-1123853742=:12576 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Fri, 12 Aug 2005 david@vallner.net wrote: > Cit=E1t len : > >> 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 >> >> >> > > > Well, this isn't BASIC, gets isn't supposed to display a prompt. Go like = this: > > puts ">>>Please enter dollar amount:" > amount =3D gets Or use print instead of puts, if you want the input on the same line as the prompt. David --=20 David A. Black dblack@wobblini.net --8323328-1636550047-1123853742=:12576-- --8323328-1636550047-1123853742=:12576--