int result = 1;
for (int i = 0; i < 6; i++) {
    result *= i+1;
}
System.out.println(result);