diff --git a/Math/factorial.cpp b/Math/factorial.cpp new file mode 100644 index 000000000..49748fb42 --- /dev/null +++ b/Math/factorial.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main() +{ + int n; + cout<<"Enter number = "; + cin>>n; + int num=1; + for(int i=1;i