You are on page 1of 1

Laboratory 4

Ap1.

Create a new class: Lab_04_1_surname_name

Read three real numbers (double) from the keyboard calculate and display on the monitor
roots (real or complex) of the equation ax2+bx+c=0.

Check if the roots are correct.

If the results are correct show only one message.

Treat the particular cases:


I. a=0
II. a=0, b=0 and c  0
III. a=0, b=0 and c=0

You might also like