+91-85006-22255
Write a program to calculate factorial of the given number.
class Factorial { public static void main(String s[]) { System.out.println("Factorial of 5 is " + factorial(5)); } public static int factorial(int number) { int result = 1;
return result; } }
Topic: Factorial Program In Java Using for Loop
Read this topic Take test on this topic
Open In App