mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
WORK
This commit is contained in:
parent
1a499c2cd6
commit
e0ea8ee455
@ -2,13 +2,14 @@
|
||||
function percentage(partialValue, totalValue) {
|
||||
return (100 * partialValue) / totalValue;
|
||||
}
|
||||
|
||||
|
||||
function docalc(){
|
||||
const num2 = document.getElementById("input2");
|
||||
const num1 = document.getElementById("input1");
|
||||
var calcu = percentage(num1, num2);
|
||||
|
||||
//percentage(num1, num2)
|
||||
document.getElementById("output").value = percentage(num1, num2);
|
||||
document.getElementById("output").value = calcu
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user