title: Having Trouble in SImple C Program
body: <p>I'm having problem with a simple C program. Even if I enter a year between 1000 and 1999 it still displays invalid year. Please tell me what's happening??</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  main()
  {
      int year;
  c:
      printf("\n\nEnter a Year: ");
      scanf("%d", year);
  
      if ((year &lt; 1000) || (year &gt; 1999))
      {
          printf("\n\nInvalid Year");
          goto c;
      }
      convert(year);
  
  }
  convert(int year)
  {
      printf("%d", year);
  }
  </code></pre>