INTRODUCTION :-
Hello Friends how are you all once again I welcome to all of you in my website Technology Inspire ( Find the factorial of a number ) .
Today I will tell you all in this article. what is the factorial and how to find the factorial of a number in a few seconds with the help of a programming language ?
Do read this article till the end because with the help of this article you will get a lot of information about factorial as well as how we can find out the factorial of any random number with the help of java programming . I can confidently say that after reading the article till the end , you will be able to easily find the factorial of any random number . That too with the help of java programming .
So without delay let’s start this program .
JAVA & FACTORIAL
Knowing about both java and factorial is very important for this program .
Java :-
Java is a high level programming language which is used by developers to design & create many web applications , mobile applications or games etc .
To know the java language more deeply , By clicking on the link given below , you will be taken directly to the page of java programming . where you will get all the information related to java programming .
Factorial :-
The factorial of a whole number is the function that multiplies the number by every natural number below it . We write this as the exclamation symbol ” ! ” . We will understand this more easily with the help of a simple example .
Example :- Suppose I want to find the factorial of a natural number and the number is 7 . Then in this condition we would put an exclamation symbol ” ! ” after the natural number exactly ” 7! “this way . Now we have to multiply it with in decreasing natural number to find its factorial , exactly like 7*6*5*4*3*2*1 .
The value that comes after multiplying these will be the factorial of 7 .
Program of factorial :-
class Factorial{
public static void main (String [] args){
int i , fact = 1;
int number = 5 ;
for (i=1;i<number;i++){
fact=fact*i;
}
System.out.println("Factroial of" +number+ "is:" +fact);
}
}
OUTPUT :-
Factorial of 5 is: 120
YouTube help :-
If there is anything in this article that you have not understood, then with the help of my YouTube channel (Technology Inspire ) you will understand easily . click on the YouTube video below (Find the Factorial of a natural number ).
If you found anything helpful in this video or article , then do like , share and Subscribe my YouTube channel and this page ( Find the factorial of a number ) .
NOTE :-
I hope that in today’s article you all know well what is Find the factorial of a number and how is work ?

Thank you all for reading this article till the end . If any one of you feel that some changes are need in this article or if you all want an article on some other topic , then definitely tell in the comment box so that very soon I will give another update on that article or that doubt . I can clear ( Find the factorial of a number ) .
So that’s all for today , with another new update in next article , good bye till then!
All of you also follow on my YouTube channel.
Related post :-