Question: please answer as soon as possible 6. Rewrite the following do loop into a while loop. int n = 1; double x = 0; double
please answer as soon as possible
6. Rewrite the following do loop into a while loop. int n = 1; double x = 0; double s; do { s=1.0 / (n*n); x = x + S; n++; } while (s > 0.01)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
