Hi !
Please, help me for edit a Java program
import java.io.*;
import java.util.*;
import java.lang.*;
public class Factorial {
/**
* Creates a new instance of <code>Factorial</code>.
*/
public Factorial() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int a[];
int gt = 1;
int gthua, n;
Scanner in = new Scanner(System.in);
System.out.print("Added n to calculate factorial: ");
n = in.nextInt();
a = new int[n];
for (int i = 1; i <= n ; i++){
System.out.print("Input number : [" +i+ "]" );
a[i] = in.nextInt();
}
for(int i = 1; i <= n; i++){
gt = gt * i;
}
gthua = gt;
System.out.print("Sum of the series " + n +" is :"+gthua);
}
}
//This progarm Java Wrong, please edit for right