Calculator English version

just a calculator to do division

  1. // ==UserScript==
  2. // @name Calculator English version
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description just a calculator to do division
  6. // @author LongName
  7. // @match https://agma.io
  8. // @match https://www.youtube.com
  9. // @match https://www.roblox.com/home
  10. // @match https://www.chess.com
  11. // @match https://github.com
  12. // @match https://adblockplus.org
  13. // @icon https://cdn-icons-png.flaticon.com/512/4374/4374752.png
  14. // @grant none
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19. // you can actually add websites right at the top by adding following // @match https://exemple.com/.fr/.io
  20.  
  21. // this program calculates the quotient of 2 integers entered by the user
  22.  
  23. let dividend;
  24. let divider;
  25. let quotient = 1;
  26.  
  27. console.log(dividend);
  28.  
  29. dividend = Number.parseInt(prompt("seize the entire dividend", "0"));
  30. divider = Number.parseInt(prompt("seize the entire divider ", "1"));
  31. quotient = dividend / divider;
  32.  
  33. alert("the quotient is "+quotient+".");
  34.  
  35. console.log(`the quotient is ${quotient}.`);
  36.  
  37. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址