error: expected declaration or statement at end of input
<p>This error is coming out of no where!! Please help!The error is coming that declaration or statement at end of input is needed! What should be done in this case?? Please help!</p>

<pre><code>#include&lt;stdio.h&gt;
#include "jatin.h"

int main() {
  int t1, t2;
  char sc1, sc2;
  while (1) {
    printf("Enter a temperature and a scale\n");
    scanf("%d %c", &amp;t1, &amp;sc1);
    convert_temp(t1, sc1, &amp;t2, &amp;sc2);
    printf("%d %c = %d %c\n", t1, sc1, t2, sc2);
      }
void convert_temp(int t1, char sc1, int *t2, char *sc2) 
{
  if (sc1 == 'F' || sc1 == 'f') 
  {
*t2 = (t1-32)/1.8;

  }
  else if (sc1 == 'C' || sc1 == 'c') 
  {

*t2 = (1.8*t1)+32;

  }
  else
  {
      printf("Enter valid temperature");
  }
}
</code></pre>