title: Create multiplication table with minimum and maximum inputs
body: <p>I have a program that creates a multiplication table using loops. The code has 2 input part: number(multiplicand) &amp; multiplier. The user input requires 2 numbers to define the parameter but each input must be between 2 - 10, otherwise an alert box appears saying that the inputs are larger than 2 - 10. However, there are still no outputs.</p>
  <p>Is there a mistype in the code? Thanks.</p>
  <p>Code:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
    &lt;head&gt;
      &lt;style&gt;
       
      &lt;/style&gt;
      &lt;script&gt;
        function addNumbers() {
      
      var multiplier;
          if (multiplier &gt; 10 &amp;&amp; multiplier &lt; 2)
          {
              alert(&quot;Multiplier above maximum of 10&quot;);
              return;
      }
      
      var number;
          if (number &lt; 2 &amp;&amp; multiplier &lt; 2)
          {
              alert(&quot;Number below minimum of 2&quot;);
              return;
      }
      
          var result = &quot;&quot;;
  
      number = Number(document.getElementById(&quot;number&quot;).value);
      multiplier = Number(document.getElementById(&quot;multiplier&quot;).value);        
          
          
          for(var i = number; i &lt;= multiplier; i++){
            result = result + &quot;&lt;p&gt;&quot;+ number + &quot;*&quot; + i + &quot;=&quot; + number * i+&quot;&lt;/p&gt;&quot;;
          }
  
          document.getElementById(&quot;result&quot;).innerHTML = result;
        }
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;/br&gt;
      Enter the number : &lt;input id=&quot;number&quot; /&gt;
      Enter the multiplier : &lt;input id=&quot;multiplier&quot; /&gt;
      &lt;br&gt;    
      &lt;/br&gt;
      &lt;button onclick=&quot;addNumbers()&quot;&gt;Print Multiplication table&lt;/button&gt; 
      &lt;div id=&quot;result&quot;&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>