//prg to find factorial
//Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,i,f=1;
cout<<"Enter a no n"<<endl;
cin>>n;
for(i=1;i<=n;i++)
f=f*i;
cout<<"Factorial ="<<f;
getch();
}
Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]
Factorial
Click Here To Download C++ File Of This Program
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment