write an object oriented program in c++ to find factorial of any given number
Answers
Answered by
1
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,f=1,i;
cout<<"Enter a number : ";
cin>>n;
for(i=1;i<=n;i++)
{
f = f*i;
}
cout<<"Factorial of "<<n<<"="<<f;
getche();
}
//Hope it helps you...
//Please mark it as brainliest...
//☺️☺️ #BAL #AnswerWithQuality
Answered by
0
I don’t know because I’m a kid you can see my profile picture
Similar questions