title: Write a program that gets an integer , which its number of digits is not specified. then print each digit n times if n is the digit itself
body: <p>How can I solve this problem?
  like this:
  6041
  6: 666666
  0:
  4: 4444
  1: 1
  I just know that for separating numbers we should do this, I think:</p>
  <pre><code>num = int(input)
  while num &gt; 0:
  res = num // 10
  num = num % 10
  </code></pre>