Calculator English version

just a calculator to do division

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Calculator English version
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  just a calculator to do division
// @author       LongName
// @match        https://agma.io
// @match        https://www.youtube.com
// @match        https://www.roblox.com/home
// @match        https://www.chess.com
// @match        https://github.com
// @match        https://adblockplus.org
// @icon         https://cdn-icons-png.flaticon.com/512/4374/4374752.png
// @grant        none
// ==/UserScript==

   (function() {
       'use strict';
// you can actually add websites right at the top by adding following // @match        https://exemple.com/.fr/.io

// this program calculates the quotient of 2 integers entered by the user

   let dividend;
   let divider;
   let quotient = 1;

   console.log(dividend);

   dividend = Number.parseInt(prompt("seize the entire dividend", "0"));
   divider = Number.parseInt(prompt("seize the entire divider ", "1"));
   quotient = dividend / divider;

   alert("the quotient is "+quotient+".");

   console.log(`the quotient is ${quotient}.`);

})();