PROGRAM FOR FIBONACCI SERIES
//PROGRAM TO FIND THE FACTORIAL OF THE NUMBER
#include<iostream.h>
#include<conio.h>
void main()
{
int n,i,fact=1;
clrscr();
cout<<"enter the number:";
cin>>n;
for(i=1;i<=n;i++)
{
fact*=i;
}
cout<<"\n"<<fact;
getch();
}
#include<iostream.h>
#include<conio.h>
void main()
{
int n,i,fact=1;
clrscr();
cout<<"enter the number:";
cin>>n;
for(i=1;i<=n;i++)
{
fact*=i;
}
cout<<"\n"<<fact;
getch();
}

Comments
Post a Comment