#include<stdio.h>
#include<conio.h>
void main()
{
int fact=1,no,m;
clrscr();
   printf("\nEnter Any Number  : ");
   scanf("%d",&no);
    {
     for(m=1;m<=no;m++)
       fact = fact * m;
     printf("\nFactroial of %d is : %d",no,fact);
    }
 getch();
}
INPUT
Enter Any Number : 5
OUTPUT
Factorial of 5 is : 120

Leave a Reply

Subscribe to Posts | Subscribe to Comments

All Notes on BCA

All Notes  on BCA
BCA all subjects notes

Total Pageviews

Translate

Powered by Blogger.

Copyright © All Notes on BCA