Posts by Carlos • 1 point
1 post
-
0
votes2
answers1149
viewsA: Bhaskara formula in C# with VS 2017
This code will work: double n1, n2, n3, resp1, resp2 ; n1 = Convert.ToDouble(txtA.Text); n2 = Convert.ToDouble(txtB.Text); n3 = Convert.ToDouble(txtC.Text); resp1 = (-n2 + Math.Sqrt(n2*n2 - 4 * n1 *…