import java.util.Scanner;
public class TesteFatorial {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
menu();
System.out.print("Número: ");
int numero = sc.nextInt();
sc.close();
lines();
int fatorial = 1;
for (int n = 1; n <= numero; n++) {
fatorial *= n;
}
System.out.println("Resultado Final ");
lines();
System.out.println(fatorial);
}
public static void menu() {
System.out.println("===================================");
System.out.println(" Bem vindo (a) ao Cálculo Fatorial ");
System.out.println("====================================");
}
public static void lines() {
System.out.println("===================================");
}
}