title: C Code compiles but does not ask for user input
body: <p>I'm a beginner in C doing the harvard cs50x course and this code was written a lot of help but I still can't seem to figure out why it compiles on vscode but does not ask for text from the user.</p>
  <p>The prompt is on writing a code that can estimate the difficulty of a text according to grade level based on a given equation that I have included below. Some of the comments include my previous mistakes so they are not descriptions that I purposely added.</p>
  <pre class="lang-c prettyprint-override"><code>#include &lt;cs50.h&gt;
  #include &lt;ctype.h&gt;
  #include &lt;math.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main(void)
  {
      // Declare variables to count letters, words, and sentences
      // Check if character is an alphabet
      // letter++
      // If character is not an alphabet or punctuation
      // word++
      // If character is punctuation
      // sentence++
  
      int count_letter = 0;
      int count_word = 1;
      int count_sentence = 0;
      string text = get_string(&quot;What is your chosen text?\n&quot;);
  
      int text_length = strlen(text);
      for(int i = 0; i &lt; text_length; i++) // Run through the length of the text?
      {
          if(isalpha(text[i])) // check if alphabet
          {
              count_letter++; // count the number of letters in the text
          }
      }
  
      for(int i = 0; i &lt; text_length; i++)
      {
          if(isspace(text[i])) {
              count_word++;
          }
      }
  
      for(int i = 0; i &lt; text_length; i++)
      {
          // if(text[i]==&quot;.&quot; || text[i]==&quot;?&quot; || text[i]==&quot;!&quot;)
          if(text[i] == '.' || text[i] == '?' || text[i] == '!') {
              count_sentence++;
          }
      }
      // L = letters/word*100, S = sentence/word*100
      int L = count_letter / count_word * 100;
      int S = count_sentence / count_word * 100;
  
      // index = 0.0588 * L - 0.296 * S - 15.8
      int index = round(0.0588 * L - 0.296 * S - 15.8);
  
      printf(&quot;%d\n&quot;, index);
  }
  </code></pre>