*13 April 2019*

Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!.

```
class FactorialOfNumber {
public static void main(String args[]) {
int factorial = 1;
int number = 5;
for (int i = 1; i <= number; i++) {
factorial = factorial * i;
}
System.out.println("Factorial of " + number + " is: " + factorial);
}
}
```