0
Does anybody knows why this program doesn't work properly?
2 Respostas
+ 1
# you made a typo in Elseif should be
else if (d == 0){
# you used one = in a comparison you should use ==
# you have to remove' ; ' in Elseif (d = 0);
# you are using the variable c without assigning it any value.
# you wrote please enter c but it' s not anywhere and you used it in (a) *(c)
Console.WriteLine("please enter c :");
d = (System.Math.Pow(b,2)) - 4 * (a) * (c);
edit: forgot to mention that the variable d, x, y should be double not int
int a, b, c;
double d, x, y;
0
thank you very much 😊😊