vedo che in algebra stai messo discretamente male, eh? :rollo:
codice:
Dim a As Integer = 1
Dim b As Integer = -CInt(txtSomma.Text)
Dim c As Integer = CInt(txtProdotto.Text)
Dim x As Integer = (-b + Math.Sqrt(b ^ 2 - (4 * a * c))) / (2 * a)
Dim y As Integer = (-b - Math.Sqrt(b ^ 2 - (4 * a * c))) / (2 * a)
MessageBox.Show(x & ", " & y)
Ti consiglio di studiare più approfonditamente... tieni conto del fatto che non potrai mai e poi mai far eseguire qualcosa ad un computer se non sai farla tu, in prima persona.
Boolean