Well I have a code in c ++ but I want to pass it to html and javascript what I want to do is that with three inputs that will be on the page enter numbers and that are passed to javascript and there to do mathematical operations and that I return a result on the page.
var a = document.getElementById("inA");
var b = document.getElementById("inB");
var c = document.getElementById("inC");
var discriminante;
var raiz;
var resultado;
var cuatro;
var raiz1;
var dividir;
raiz1 = b * b - cuatro * a * c;
discriminante = b * b - 4 * a * c;
raiz = b * b - 4 * a * c;
raiz = Math.sqrt(raiz);
resultado = -1 * b;
dividir = 2 * a;
document.write(b * b);
<!DOCTYPE html>
<html>
<head>
<title>Prueba</title>
</head>
<body>
<input id="inA" type="text">
<input id="inB" type="text">
<input id="inC" type="text">
</body>
</html>