The following code was intended for obtaining the number of times you have to divide 1 by 2 to get a value less than one ten-thousands XXXXXXXXXX). Please point out errors and correct/complete the...


The following code was intended for obtaining the number of times you have to divide 1 by 2 to get a value less than one ten-thousands (0.0001).
Please
point out errors
and
correct/complete
the code.



     //Declare variables


     int number = 1;


     double quotient = number/2;


     while(quotient>=0.0001);


     {


           quotient = quotient/2;


     }



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here