public class Main {
public static void main(String args[]) {
for(int i=1;i<=10;i++) {
System.out.print(i +"! = ");
int fatorial = 1;
for (int j=i;j>=1;j--) {
fatorial *= j;
}
System.out.println(fatorial);
}
}
}