public class TestaFatorial {
public static void main(String[] args) {
int fatorial = 1;
for (int i = 1; i <= 10; i++) {
int r = fatorial *= i;
System.out.println(" " + r);
}
}
}