public class DesafioFatorial { public static void main(String[] args) {
int fatorial=1,n,l;
System.out.println("0!=1");
for (n = 1; n < 10; n++) {
for (l = 1; l < n; l++) {
if (l == 1) {
fatorial = l * n;
}
else {
fatorial = fatorial * l;
}
}
System.out.println(n+"!="+fatorial);
fatorial = 0;
}
}
}