Menu
Question Index
...

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;
    }

}

Doubts

Problems

Topic: Factorial Program In Java Using for Loop

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App