Feeds
提问
Calculate the roots of quadratic ax^2 + bx + c = 0. For the program, consider the discriminant D, D = b^2 − 4ac
If D > 0, display ”The equation has two roots,” and the roots are displayed in the next line. If D = 0, display ”The equation ...
10 years 前 | 1 个回答 | 1