On Mon, 29 Jan 2007 13:34:32 -0800, Zunaster wrote: > This is the code I have been trying to execute. But this seems > incorrect. I have trying to make horizontal bar of stars (*) . > In this program you the program generates how many times the > horizontal line of stars to generated and then it makes horizontal > lines comprising of number of stars you stated. > > puts " Please enter a number " > s = gets() > while x<s > i=rand(6) > print i > x+=1 > while j<i > puts("*") > j+=1 > end > end puts always puts a newline after whatever it prints all you can ever get from this code is * * * * * * * Use print instead. -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/