Main.c:3:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token : <p>In this simple program to find whether a number is even or odd it keeps howing the error Main.c:3:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘{’ token. Please help.</p>

<pre><code>#include&lt;stdio.h&gt;
int main{
int n;
  scanf("%d",&amp;n);

  if(n%2==0)
    printf("%d is an even number",n);

  else
    printf("%d is an odd number",n);
return 0;
}
</code></pre>
