|
If you asked for more accuracy than is possible in double precision variables, what might happen? For example, say that you asked for 21 accurate figures. A good answer might be:The loop ends when it has achieved the goal. If the goal cannot be achieved, the loop might go on forever. | ||
Improvement to the ProgramHere is the familiar program fragment that asks the user to enter a floating point value:
Here is the previous version of the program:
It would be nice if the user could enter number for which the square root will be computed. | ||
QUESTION 16:(Mentally) combine the program fragment and the program so that the user can enter N. Click Here after you have answered the question |