Finding a Factorial using while loop
<% int value = 12, factorial = 1, temp = value; while (temp > 0) { factorial *= temp; temp--; } out.println("The factorial of " + value + " is " + factorial + "."); %>