9. The following fragment of code computes the E(x,n) = 1 + i +*+...+ [8] double s 1; double term = 1; int i = 0; while
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
9. The following fragment of code computes the E(x,n) = 1 + i +*+...+ [8] double s 1; double term = 1; int i = 0; while
9. The following fragment of code computes the E(x,n) = 1 + i +*+...+ [8] double s 1; double term = 1; int i = 0; while (i<n) 1 i++; term = term* (x/i); S- S+term; Give an equivalent code where the while loop is replaced by a for loop:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!