#include <stdio.h> #include <conio.h> void main() { int i,n,f=1; clrscr(); printf("Enter No."); scanf("%d",&n); for(i=n;i>0;i--) f=f*i; printf("%d's Factorial value is : %d",n,f); getch();
}
No comments:
Post a Comment