title: user input in c
body: <p>I cannot figure out how to take away a letter dependent on user input. For example, if I enter <code>b</code> the code should output <code>cdefghijklmno...</code> If I enter <code>c</code> the code should output <code>defghijklmno...</code> I just don't know where to do the math?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
      char letter;
  
      printf("Type one letter of alphabet and following letters will appear (lowercase): ");
      scanf_s("%c", &amp;letter);
  
      if (letter &gt;= 'a' &amp;&amp; letter &lt;= 'z'){
          printf("%c, valid entry!\n\n", letter);
          for (letter = 'a'; letter &lt;= 'z'; ++letter){
              printf("%c ", letter);
          }
      } else {
          printf("%c, invalid entry.\n\n", letter);
      }
      return 0;
  }
  </code></pre>