title: Multi-threaded program with 3 threads that prints sequence of numbers
body: <p>I am trying to write a program that utilizes 3 threads and prints 0,1,2,3,4,5,.... and so on.</p>
  
  <p>Thread 1 - prints 0,3,6,9 and so on
  <br>Thread 2 - prints 1,4,7,10 and so on
  <br>Thread 3 - prints 2,5,8,11 and so on</p>
  
  <p>Can anyone please help me in writing the code for this?</p>