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<