9. The following fragment of code computes the E(x,n) = 1 + i +*+...+ [8] double s 1; double term = 1; int i = 0; while
Posted: Fri Apr 29, 2022 6:32 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 (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: