### Home > PC > Chapter 1 > Lesson 1.2.2 > Problem 1-79

1-79.

PROGRAMMING EXTENSION PROBLEM

Try your QUADFORM program with the following inputs;

:If

: Goto

: Stop

: Lbl

: Disp “COMPLEX ROOTS”

The program will “crash” since the program tries to take the square root of a negative number.

Possible Solution:

Program: QuadForm

: When

: Goto 3

: Else

:

:Program: QuadForm

: ClrHome

: Input “A=”, A

: Input “B=”, B

: Input “C=”, C

:

: If

ThenProgram: QuadForm

: Disp R

: Disp S

: End

: Stop

: Lbl 3

: Disp “COMP RTS”