News
public static void main(String[] args) { int number = 5; / long factorial = 1; for (int i = 1; i <= number; i++) { factorial *= i; } System.out.println("The factorial ...
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter a number: "); int num = sc.nextInt(); int factorial = 1; for ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results