title: Program works in terminal but "timed out while waiting for program to exit" in Check50
body: <p>I am new to programming and this is my first time posting here so please excuse me if the answer is painfully obvious!</p>
  <p>I encountered this error when working on <a href="https://cs50.harvard.edu/x/2020/psets/1/mario/less/" rel="nofollow noreferrer">pset1</a> from CS50x 2019. We're supposed to print a pyramid with a height between 1 and 8 inclusive, and the program needs to re-prompt the user if the height entered is out of this range.</p>
  <p>When I ran the program in the terminal, it works as intended every time... but not according to Check50. I am wondering if there is something wrong with my code or is this more of a Check50 problem? This is my <a href="https://submit.cs50.io/check50/15a57ee20798b8862274bec647a843a35878b589" rel="nofollow noreferrer">result</a> from Check50.</p>
  <p>Thanks in advance!</p>
  <pre><code>#include &lt;stdio.h&gt; // for printf function
  #include &lt;cs50.h&gt; // for get_int function
  #include &lt;unistd.h&gt; // for sleep function
  
  int main(void)
  {
      // prompt user for height; reprompt if input is less than 1 or greater than 8
      int h;
      do
      {
          h = get_int(&quot;Height: &quot;);
      }
      while (h &lt; 1 || h &gt; 8);
  
      // outer loop prints r rows; inner loop prints c columns
      for (int r = 0; r &lt; h; r++)
      {
          for (int c = 0; c &lt; h; c++)
          {
              if (c &lt; h - 1 - r)
              {
                  printf(&quot;.&quot;);
              }
              else
              {
                  printf(&quot;#&quot;);
              }
              sleep(1);
          }
      printf(&quot;\n&quot;);
      sleep(1);
      }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/8Xhlb.png" rel="nofollow noreferrer">screenshot with input 8 showing the pyramid</a></p>