# Help pls

Given real numbers a, b, c. Find the roots of the quadratic equation ax2 + bx + c = 0, otherwise the answer is to say that there are no roots.

Given real numbers x, y, z. Find out if there is a triangle with sides x, y, z.

Three real numbers are given. To square those of them whose values ​​are nonnegative.

The program asks the user “How old are you?”. You enter a positive number to 100. The program should give a complete answer to "You X (or years or years or year).

Given real numbers a, b, c. Double these numbers if a≥b≥c, and replace them with absolute values, if it is not.

Given a natural number n (n≥9999). Is this number a palindrome (a flip-flop) with four digits, such as 2222, 6116, 0440, etc.?

The first one is a simple matter of using code to evaluate,

``````  x = (-b +/- sqrt(b * b - 4 * a * c) ) / 2 * a
``````

The second one can take advantage of a basic property:

``````if any one side is greater than or equal to the sum of
the other two, x, y, z are not sides of a triangle.
``````

The others are child’s play.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.