I am trying to learn ruby, and i am trying to do the exercise on this site and need help
learn ruby
Write a program that asks for a number and a sentence and prints the sentence backwards that many times. It should:

puts "Enter A Number?"
repeatHello = gets
i = 0
begin
puts "hello world!" + i
end while i > repeatHello
You’re making two mistakes in the code you pasted. The first is that you need to add 1 to i each time it loops. At the moment i is not increasing in value.
Within the loop (between begin and end) you need to increment i like so:
(This shorthand for i = i + 1).
The second mistake is on the last line. Currently it reads ‘do this while i is greater than repeatHello’, but i starts at 0, so its not going to be greater.
You need to switch it around to
You should end up with some code like this: