title: How to use scanf in for loop
body: <p>Whenever i try to read input with</p>
  
  <pre><code>for (int i = 1; i &lt;= 10; ++i) {
      scanf("(%c, %d, %d, %d)",&amp;charv,&amp;intv1,&amp;intv2,&amp;intv3);
  }
  </code></pre>
  
  <p>I only get to <code>scanf()</code> once. What is the problem ?</p>
  
  <p>Input -> (P, 1, 2, 3)......(P, 2, 3, 12)</p>