Z
Zunaster
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
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