SHARE
TWEET

bin2text

a guest May 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>kalkulator</title>
  4. <meta charset="utf-8">
  5. </head>
  6. <body>
  7. <script type="text/javascript">
  8. x=prompt("podaj liczbe");
  9. document.write(x+" w systemie binarnym to");
  10. wynik="";
  11.  
  12. for(y=x;x>0;y--)
  13. {
  14. r=x%2;
  15. x=(x-r)/2;
  16. wynik=r+wynik
  17.  
  18.  
  19. }
  20. document.write(wynik);
  21.  
  22.  
  23. </script>
  24.  
  25.  
  26. </body>
  27.  
  28. </html>
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