title: How to print variable multiple times with one printf statement in C
body: <p>After searching stack overflow and going through several tutorials I still can't find out how to print a variable multiple time with one printf statement.</p>
  
  <p>This is what I want to get as a result:</p>
  
  <p>1111111111</p>
  
  <p>2222222222</p>
  
  <p>3333333333</p>
  
  <p>by using something like this:</p>
  
  <pre><code>for(int i=1; i&lt;4; i++)
  
  {
      printf("%d", i);   //it would be great to add something here
  }
  </code></pre>
  
  <p>But without another for loop!</p>
  
  <p>Or it can be easily asked like this, I want printf to print variable int i=1; multiple times in a row without loops. So output would be 1111111111</p>