title: C Program that counts how many pass or fail grades and exits when a negative number is inputted
body: <p>I'm a newbie to C Programming and we're still starting on the loops. For our exercise today, we were tasked to create a do-while program that counts how many pass and fail grades there are but the loop breaks when a negative number is inputted. Also, numbers above 100 is skipped. This is my program:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  
  int main()
  {
  int grade, pass, fail;
  
  pass = 0;
  fail = 0;
  
  do {
      printf("Enter grade:\n");
      scanf("%d", &amp;grade);
      printf("Enter -1 to end loop");
  }
  
  while(grade == -1){
      if(grade &lt; 100){
          if(grade &gt;= 50){
          pass = pass + 1;
          }
          else if {
          fail = fail + 1;
          }
      }
      break;
  }
  printf("Pass: %d", pass);
  printf("Fail: %d", fail);
  
  getch ();
  return 0;
  }
  </code></pre>
  
  <p>Can someone please tell me how to improve or where I went wrong?</p>