public class Exercício09 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner ent = new Scanner(System.in);
int num, fat = 1;
int cont = 1;
do{
System.out.println("Digite um nº");
num = ent.nextInt();
for(int i = 1;i <= num; i++){
fat = fat * i;
}
System.out.println("!" + num + " = " + fat);
cont++;
}while(cont < 2);
}
}