Programme To Find Factorial Of A Given Number In C++ With Out Using Class Concept?

1

1 Answers

Alongbar Daimary Profile
Finding Factorial without Class Concept.
#include<iostream.h>
#include<conio.h>
void main(){
int Number=0;
int Factor=1;
cout<<"Enter any number to find Factorial.";
cin>>Number;
for(int I=1;I<=Number;I++){
Factor=Factor * I;
}
cout<<"Required Factorial of <<Number << is: "<<Factor;
getch();

}
thanked the writer.
Gulzar A Laskar
Gulzar A Laskar commented
Abbey alone...do ek program to mere liye bhi chur k jaa
Anonymous
Anonymous commented
It doesnt work?
Alongbar Daimary
Alongbar Daimary commented
Hi Fact;
It is already tested.
Run it at Turbo C.
If You R running at Visual C++ then Remove #include and getch();

Answer Question

Anonymous