title: Using Loops for prompts with If/Else/Esif
body: <p>I started with:</p>
  
  <pre><code>    puts "Hello there, and what's your favorite number?"
      favnum = gets.to_i
      puts "Your favorite number is #{favnum}?" " A better favorite number is #{favnum + 1}!"
      puts "Now, what's your favorite number greater than 10?"
      favnumOverTen = gets.to_i
      if favnumOverTen &lt; 10
          puts "Hey! I said GREATER than 10! Try again buddy."
      else
          puts "Your favorite number great than 10 is #{favnumOverTen}?"
          puts "A bigger and better number over 10 is #{favnumOverTen * 10}!"
  puts "It's literally 10 times better!"
      end
  </code></pre>
  
  <p>That worked fine, but if the user entered a number less than 10 the program ended.
  I want the user to be prompted to try again until they enter a number greater than 10.
  Am I supposed to do that with a loop?</p>
  
  <p>Here's what I took a swing at, but clearly it's wrong:</p>
  
  <pre><code>    puts "Hello there, and what's your favorite number?"
      favnum = gets.to_i
      puts "Your favorite number is #{favnum}?" " A better favorite number is #{favnum + 1}!"
      puts "Now, what's your favorite number greater than 10?"
      favnumOverTen = gets.to_i
      if favnumOverTen &lt; 10
      loop.do
          puts "Hey! I said GREATER than 10! Try again buddy."
          favnumOverTen = gets.to_i
      until favnumOverTen &gt; 10
      else
          puts "Your favorite number great than 10 is #{favnumOverTen}?"
          puts "A bigger and better number over 10 is #{favnumOverTen * 10}!"
  puts "It's literally 10 times better!"
      end
  </code></pre>