Product of all integers less than or equal to n and greater than or equal to 1

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.

* indicates required

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