n ! = n ( n - 1)( n - 2)( n - 3) ... (3)(2)(1)

```
#include <stdio.h>
int main(void){
int i;
int num;
unsigned long long fact=1;
printf("Enter the number ");
scanf("%d",&num);
for ( i=1;i<=num;i++){
fact = fact * i;
}
printf("Factorial = %llu",fact);
return 0;
}
```

Output is here for input 10
`3628800`

This article is written by **plus2net.com** team.

Swapping two numbers sample code
Average of two numbers as entered by user
Highest of three numbers
Finding exam Grade of mark entered using if else condition
Calculation of user entered numbers
Percentage of Mark
Division of Mark
Digits in Number
Sum of Digits
Matrix Multiplication

Post your comments , suggestion , error , requirements etc here