class Prog35a { // A program to calculate the factorial of 11 public static void main(String[] args) { int i, j, k; for (i = 1, j = i, k = 11 ; i <= k; i = i + 1, j = j * i) { System.out.println(j); } } }