From 435e7deab8e41cc890017b20e4fe1ab9e86ff8ee Mon Sep 17 00:00:00 2001 From: Md Altamash <91662197+md1altamash@users.noreply.github.com> Date: Sat, 19 Oct 2024 19:06:30 +0530 Subject: [PATCH] Create factorail --- C++/factorail | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 C++/factorail diff --git a/C++/factorail b/C++/factorail new file mode 100644 index 00000000..90e3623d --- /dev/null +++ b/C++/factorail @@ -0,0 +1,13 @@ +//factorial +#include +using namespace std; +int main() +{ + int n,fact=1; + cout<<"enter the factorial number= "<>n; + for(int i=1;i<=n;i++){ + fact=fact*i; + } + cout<