I am learning Java using the book Java: The Complete Reference. Currently I am working on the topic Recursion.
Please Note: There are similar questi
public class Factorial { public static void main(String[] args) { int n = 7; int result = 1; for (int i = 1; i <= n; i++) { result = result * i; } System.out.println("The factorial of 7 is " + result); } }