WAP To Print Factorial Of An Integer.
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
Void main()
{ int i,n,fact=1;
clrscr();
cout<<”Enter the no.”;
cin>>n;
for(i=1;i<=n;i++)
{
fact=fact*I;
}
cout<<”Factorial of no.
is”<<fact;
getch();
}
Comments
Post a Comment