SHARE
TWEET

Untitled

a guest Nov 13th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.         <p id="demo"></p>
  3. <script>
  4. var p = 3;
  5. var a =1;
  6. var b=p
  7. var i=0
  8. for(i=0; i<10; i++)
  9.     {
  10.         a=(a+b)/2
  11.         b=p/a
  12.     }
  13. document.getElementById("demo").innerHTML = a + " "+b;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top