diff --git a/C++/factorial b/C++/factorial new file mode 100644 index 0000000..90e3623 --- /dev/null +++ b/C++/factorial @@ -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<