السلام عليكم
بصراحه عندي سؤال عرفت أحله بس بدون function وإذا حاولت أحله بالفنكشن مايمشي البرنامج خير شر
السؤال هو
Define factorial function:
n!=n.(n-1).(n-2)...1 for values of n greate than to 1
and n!=1 for n=0 or n=1
write a program that estimates the value of the mathematical constante by using theformula:
e=1+1/1!+1/2!....
stop at 1/100!
السطرين الأخيره مادري ليش أنقلبت عموما المقصود مضروب 2وليسe
والأخر مضروب ال100
![]()