Escolar Documentos
Profissional Documentos
Cultura Documentos
showInputDialog("Digite um numero"); int numero = Integer.parseInt(s); for(int i = 1;i<=numero;i++){ fat = fat*i; } JOptionPane.showMessageDialog(null,"O Fatorial do nmero "+numero+ " " +fat+"\n"+numero+ "!"+" = "+fat,"FATORIAL", JOptionPane.INFORMATION_MESSAGE); } }