This commit is contained in:
Boof 2023-02-01 10:33:54 +01:00 committed by GitHub
parent 1a499c2cd6
commit e0ea8ee455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>