My program shows an error, It says that a semicolon missing : <pre><code>import java.util.*;
public class Fact
</code></pre>

<blockquote>
  <p>program to find factorial numbers</p>
</blockquote>

<pre><code>{
     Scanner sc=new Scanner(System.in);
     int n;
     Fact()
</code></pre>

<blockquote>
  <p>an empty constructor</p>
</blockquote>

<pre><code>     {
        }

void accept()
    {
           System.out.println("Enter the number");
           n=sc.nextInt();
           System.out.println(pact(n));
        }
   **int pact(int n)**
</code></pre>

<blockquote>
  <p>here is where my program says that it is missing a semicolon</p>
</blockquote>

<pre><code>  (
           if(n==1)
              return 1;
           else
              return n*fact(n-1);
   }     
   public static void main()
{
Fact obj=new Fact();
obj.accept();
}
} 
</code></pre>
