السلام عليكم ورحمة الله في الحقيقة لدي ثلاث اسئلة
باستخدام while
1.write a program that reads a nonnegative integer and computes and prints its factorial
2. write a program that estimates the value of the mathematical constant e by using the formula e=1+(1/1!)+1/(2!)........
3.write a program that computes the value of e^x bu using the formula
e^x=1+(x/1!)+x^2/(2!)........
الرجاء شرح طريقة عمل البرنامج وشكرا