+ 1
Pls can someone solve this question on Quadratic calculator in C#
solve a comlex quadratcic roots without conditional statement like if and else
2 Réponses
+ 1
I've managed to do the C# version now:
https://code.sololearn.com/cRIEl8m2XjX7/#cs
0
This solves for all three cases of the quadratic equation, without using conditional statements like if and else:
1) Two real roots
2) One real root
3) Two imaginary roots
https://code.sololearn.com/c14V34J4FnA8/#c
[Note that I don't know C#, but you should be able to do something similar. I solved this in C].
I'm working on the C# version now... shouldn't be too tricky!