public class TesteFatorial {
public static void main(String[] args) {
    int total = 0;
    int f = 1;
    for (int n = 1; n <= 10; n++) {
        while (f <= 10) {
            total = n * f;
            System.out.println(total);
            n = total;
            f++;
        }
    }
}}
 
            