title: Printing 1-N with N threads. The threads should print it iteratively M times
body: <p>I was having a hard time trying to figure out an algorithm to print the following pattern in go using N goroutines,</p>
  <pre><code>1, 2 ..... N 
  2, 4 .....2N
  3, 6 ..... 3N
  M*1, M*2 ..... M*N
  </code></pre>
  <p>Please help me out.</p>