Post Top Ad

Your Ad Spot

Pages

Sunday, 9 February 2020

Write A Program To Find Factorial OF ANY Number

#include<stdio.h>
#include<conio.h>

int fact(int no)
{
int i,res=1;
for(i=no;i>0;i--)
{
res=i*res;
}
return res;
}
void main()
{
  printf("%d",fact(6));
}

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages