title: Assigning a Letter in C
body: <p>I'm trying to assign a letter grade based on a students total score. Then try to print that letter grade, but I am printing a null. Here is the code that I am using:</p>
  
  <pre><code>int FinalScore;
      FinalScore = q1w+q2w+q3w+q4w+midiw+midiiw+finalw;
  
  // Determine the letter Grade
  if (FinalScore&gt;=0 &amp;&amp; FinalScore &lt;= 59)
  {   
      char LetterGrade[20];
      strcpy(LetterGrade,"F");
  }
  if(FinalScore&gt;=60 &amp;&amp; FinalScore &lt;=69)
  {
      char LetterGrade[20];
      strcpy(LetterGrade,"D");
  }
  if(FinalScore&gt;=70 &amp;&amp; FinalScore &lt;=79)
  {
      char LetterGrade[20];
      strcpy(LetterGrade,"C");
  }
  if(FinalScore&gt;=80 &amp;&amp; FinalScore &lt;=89)
  {
      char LetterGrade[20];
      strcpy(LetterGrade,"B");
  }
  if(FinalScore&gt;=90 )
  {
      char LetterGrade[20];
      strcpy(LetterGrade,"A");
  }
  printf("%s",&amp;LetterGrade);
  </code></pre>
  
  <p>Any ideas why I am getting the null?? Thanks.</p>