1.

Write a Java Program to find the factorial of a given number.

Answer»

public CLASS FindFactorial { public static VOID main(String[] args) { int num = 10; LONG factorialResult = 1l; for(int i = 1; i <= num; ++i) { factorialResult *= i; } System.out.println("Factorial: "+factorialResult); }}



Discussion

No Comment Found