@@ -0,0 +1,461 @@
+package exercicio_3;%0A%0Aimport java.util.Scanner;%0A%0Apublic class Fatorial %7B%0A%0A%09public static Scanner scanner;%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09int n,nm, total =1;%0A%09%09scanner = new Scanner(System.in);%0A%09%09%0A%09%09%0A%09%09System.out.println(%22informe um nmero para calcurar seu fatorial: %22);%0A%09%09n = scanner. nextInt();%0A%09%09nm = n;%0A%09%09%0A%09%09while (n %3E 0)%7B%0A%09%09%09total = total*n;%0A%09%09%09n--;%0A%09%09%09%0A%09%09%7D%0A%09%0A%09%09System.out.println(%22o fatorial de %22+ nm +%22 :  %22+total);%0A%0A%09%09System.exit(0);%0A%09%7D%0A%0A%7D%0A

Calculates the factorial of an integer