السلام عليكم
محتاجه حل البرنامج هذا بنفس الفكرة اللي طالبها لانو انا حليته بطريقة ثانيه
Write a c++ program to calculate the factorial of any given integer number
Note
There is no factorial for negative numbers
0!=1 , 1!=1
n!=n.(n-1)x(n-2)x(n-3)…….x2x1
i.e 4!=4x3x2x1
انتظركم