1) Write a program to calculate factorial of a number code example
Example: write a program to find factorial of a number
#include<stdio.h>
int main()
{
int i,fact=1,number;
printf("Enter a number: ");
scanf("%d",&number);
for(i=1;i<=number;i++){
fact=fact*i;