This commit is contained in:
Umme Habiba Qadri 2022-10-06 22:38:55 +05:30
parent c062388fce
commit 3d61483cdc

View file

@ -16,7 +16,7 @@
<img src="../home.svg" alt="home" />
</a>
<h2> Let's see the Output </h2>
<form oninput="x.value=parseInt(a.value) * parseInt(b.value)">
<form oninput="x.value= (a.value && b.value) ? parseInt(a.value) * parseInt(b.value) : 0">
<input type="number" id="a" value="0">
* <input type="number" id="b" value="0">
= <output name="x" for="a b"></output>