Wednesday, 22 November 2017

C Program To Find Out Factorial Number Of Given Number

following program will find out the factorial number of a given number.
[ #include #include void main() { int num,factnum,I; factnum=1; printf(“Enter Number To Findout Factorial Number”); scanf(“%d”,&num); for(i=1;i<=num;i++) { factnum=factnum*i; } printf(“Factorial Number Of Entered Number is:%d”,factnum); getch(); }]

output:

Enter Number To Findout Factorial Number:5

Factorial Number Of Entered Number is:120


Share This
Previous Post
Next Post

Admin and author of BestBCANotes. Complted master degree in Computer Science.

0 comments: