Join Our Email Alerts-Subscribe
Important Note:Login & Check Your Email Inbox and Activate Confirmation Link



Enter Your Email :

Copyright Disclaimer:
Section 107 of the Copyright Act Fair Use Contents .
We are forwarding content link(s) from our website to content website & We are not serving any contents.
Main Source:Google.com.All the Content PDF link(s) is/are obtained from GoogleSearch
for the purpose of Education & Teaching Intention. Not for commercial purpose.
Technicalsymposium.com is not liable/responsible for any copyright issues.

C Programming Source Codes & Study Notes-Free Download


C Program for factorial using recursion.

int fact(int);

void main()

{

int a,b=0,c;

clrscr();

printf("Enter the N value:");

scanf("%d",&a);

while(a<0)

{printf("\n\Enter only positive number.\n");

printf("Enter N value:");

scanf("%d",&a);

}

b=fact(a);

printf("%d",b);

getch();

}

int fact(int x)

{

if(x==0)

{

return(1);

}

else

{

return((x)*(fact(x-1)));

}

}