0

Does anybody knows why this program doesn't work properly?

https://code.sololearn.com/ck3gkM64tmHg/?ref=app

3rd Feb 2019, 10:28 PM
Meysam _PHOENIX
Meysam _PHOENIX - avatar
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;
4th Feb 2019, 1:18 AM
Bahhaⵣ
Bahhaⵣ - avatar
0
thank you very much 😊😊
4th Feb 2019, 4:43 AM
Meysam _PHOENIX
Meysam _PHOENIX - avatar