title: while loop multiplication table python
body: <p>Okay so basically what I am trying to accomplish is only using while loops and using them efficiently. Nested while loops are very tricky for me and hard to understand. I am trying to make a 10x10 multiplication table with a header.</p>
  
  <p>So my current code is:</p>
  
  <pre><code>firstNumber = int(input("Please enter the first number: "))
  secondNumber = int(input("Please enter the second number: "))
  count = 0
  while(count &lt; 1):
      print("{:17} {:5} {:5} {:5} {:5} {:5} {:5} {:5} {:5} {:5}"\
        .format(firstNumber, firstNumber + 1, firstNumber + 2, firstNumber + 3,\
                firstNumber + 4, firstNumber + 5, firstNumber + 6, firstNumber\
                + 7, firstNumber + 8, firstNumber + 9))
      print("{:5} {:}".format(" ", "-"*65))
      count += 1
      counter = 0
      while(counter &lt; 10):
          downSolution = firstNumber * secondNumber
          print("{:5} {:5} {:5} {:5} {:5} {:5} {:5} {:5} {:5} {:5} {:5} {:5}"\
                .format(secondNumber, "|", downSolution,\
                    downSolution + secondNumber, downSolution +\
                    (secondNumber * 2), downSolution + (secondNumber * 3),\
                    downSolution + (secondNumber * 4), downSolution + \
                    (secondNumber * 5), downSolution + (secondNumber * 6),\
                    downSolution + (secondNumber * 7), downSolution + \
                    (secondNumber * 8), downSolution + (secondNumber * 9)))
          counter += 1
          secondNumber += 1
  </code></pre>
  
  <p>which outputs:</p>
  
  <pre><code>            5     6     7     8     9    10    11    12    13    14
     -----------------------------------------------------------------
   5 |        25    30    35    40    45    50    55    60    65    70
   6 |        30    36    42    48    54    60    66    72    78    84
   7 |        35    42    49    56    63    70    77    84    91    98
   8 |        40    48    56    64    72    80    88    96   104   112
   9 |        45    54    63    72    81    90    99   108   117   126
  10 |        50    60    70    80    90   100   110   120   130   140
  11 |        55    66    77    88    99   110   121   132   143   154
  12 |        60    72    84    96   108   120   132   144   156   168
  13 |        65    78    91   104   117   130   143   156   169   182
  14 |        70    84    98   112   126   140   154   168   182   196
  </code></pre>
  
  <p>Which is basically correct but apparently I didn't do it correctly. So how would I nest the loops more efficiently for the while loops to deal with only one single number at a time instead of ten? </p>