Computer Science, asked by VimalJee, 11 months ago

write codes how to substracting any number in html?​

Answers

Answered by TrustedAnswerer
1

Answer:

CODING:-

<!DOCTYPE html>

<html>

<head>

<title>Substraction</title>

</head>

<h1 style = "color:red">Substraction with HTML</h1><hr/>

<font color = "green">

<form oninput="x.value=parseInt(a.value)-parseInt(b.value)" >

Enter the first number =

<input type="number" id="a" value="0">

-<br>

Enter the second number =<input type="number" id="b" value="0"><br>

Difference = <output name="x" for="a b" >

</output>

</form>

<br>

</body>

</html>


Anonymous: Nice ; )
Similar questions