Program To Display The Factorial Of A Given Number
/* Program To Display The Factorial Of A Given Number */ #include
#include
void main() { long int n,mult=1; clrscr(); printf("\nEnter the number\n\n"); scanf("%ld",&n); while(n>=1) { mult = mult*n; n--; } printf("\nfactorial of the given number = %ld",mult); getch(); }
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/