Hola!! al parecer hay un error en mi codigo y no se cual es. trato de calcular formula cuadratica y al apachar mi boton de calcular en los textbox de respuesta aparece NeuN alguien que me ayude con esto porfavor.
Double a, b, c, x, x1;
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
a = Convert::ToDouble(textBox1->Text);
b = Convert::ToDouble(textBox2->Text);
c = Convert::ToDouble(textBox3->Text);
x= -b + sqrt(b*b-4*a*c)/2*a;
x1= -b - sqrt(b*b - 4 * a*c) / 2 * a;
textBox4->Text = Convert::ToString(x);
textBox5->Text = Convert::ToString(x1);
Double a, b, c, x, x1;
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
a = Convert::ToDouble(textBox1->Text);
b = Convert::ToDouble(textBox2->Text);
c = Convert::ToDouble(textBox3->Text);
x= -b + sqrt(b*b-4*a*c)/2*a;
x1= -b - sqrt(b*b - 4 * a*c) / 2 * a;
textBox4->Text = Convert::ToString(x);
textBox5->Text = Convert::ToString(x1);