Finding Factorial Of a Number using C

 

#include<stdio.h>

#include<stdlib.h>

int fact(int n);

int main(){

int n;

printf("Enter the Digit:");

scanf("%d",&n);

int x= fact(n);


}

int fact(int n)

{

int i=1;

int fact=fact*n;

return fact ;


}

Popular posts from this blog

C program to convert decimal to Binary

C program to Convert Decimal to Hexadecimal

C Program to Add two Matrix