go to previous page   go to home page   go to next page


(Math Review:) Will there be two roots for every choice of a, b, and c?


Program Specifications

Let us consider roots that are real numbers, only. Then if:

Problems Specification:

Write a program that repeatedly asks the user for the coefficients a, b, and c (which will be double precision) and for each set writes out

Furthermore, write out an error message if a = 0 but continue processing.

If the user enters non-numeric data, the program will crash. (C can be more user-friendly than this, but the logic gets messy.)


What type of loop do you propose for this program?