title: printf a number of times from user input
body: <p>I'm doing cs50. I'm completely new to C. I am using my limited knowledge of Python but there are some syntax I don't understand.</p>
  <p>How do I get it to print a number of times based on user input? why doesn't <code>void cough(int n = get_int(&quot;number: &quot;))</code> work? It gives me a <code>use of undeclared identifier 'n'</code> error.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;cs50.h&gt;
  
  void cough(int n);
  
  int main(void)
  {
      cough(n);
  }
  
  void cough(int n = get_int(&quot;number: &quot;))
  {
      for (int i = 0; i &lt; n; i++)
      {
          printf(&quot;cough\n&quot;);
      }
  }
  </code></pre>