ملاك الروح الحزين
Active Member
- تاريخ التسجيل
- 7 أكتوبر 2011
- المشاركات
- 40
- المجموعة
- أنثى
- الدفعة الدراسية
- 2011
- الكلية
- كلية الهندسة
- التخصص
- تصميم داخلي
can u help me ? I try a lot but I cannot solve it
1) calculate the value of PI from the infinite series (PI = 4 - 4/3 + 4/5 - 4/7 + 4/9 -..) print a table that shows the approximate value of PI after each of the first 1000 terms of this series (display approximated value for PI with 8 digits of precision).
2) write program to calculate the following series ( sum = 1+3+5+7+...+N) , the user has to enter the value of N and N should be an odd number , if N was entered as an even number you should print a message "Wrong input", else if odd number find the sum of the series.
1) calculate the value of PI from the infinite series (PI = 4 - 4/3 + 4/5 - 4/7 + 4/9 -..) print a table that shows the approximate value of PI after each of the first 1000 terms of this series (display approximated value for PI with 8 digits of precision).
2) write program to calculate the following series ( sum = 1+3+5+7+...+N) , the user has to enter the value of N and N should be an odd number , if N was entered as an even number you should print a message "Wrong input", else if odd number find the sum of the series.

