+ 4

Why this code return negative roots if i input a, b,c as 1 5 6

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

28th Mar 2020, 5:30 AM
Wade
Wade - avatar
7 Réponses
+ 5
It is only for posative integers
28th Mar 2020, 7:25 AM
Wade
Wade - avatar
+ 3
Right, i was also think on this problem
28th Mar 2020, 7:16 AM
Wade
Wade - avatar
+ 3
And get remember difference bw roots and zeros
28th Mar 2020, 7:17 AM
Wade
Wade - avatar
+ 3
I am thinking about negative condition and edit further
28th Mar 2020, 7:26 AM
Wade
Wade - avatar
+ 2
I think you should put an if to separate the three delta cases (positive, zero and negative)
28th Mar 2020, 11:35 AM
Sigma
Sigma - avatar
+ 2
Yes
29th Mar 2020, 8:23 PM
John
John - avatar