% Takes as input three integers a, b, c and tells 
% you whether the quadratic p(x) = ax^2 + bx + c has 
% distinct real roots, a repeated real root, or complex roots

a = input('What is the value of a? '); 
b = input('What is the value of b? '); 
c = input('What is the value of c? '); 

if b^2 > 4*a*c
    fprintf('The polynomial p(x) = ax^2 + bx + c has distinct real roots.\n'); 
elseif b^2 == 4*a*c
    fprintf('The polynomial p(x) = ax^2 + bx + c has a repeated real root.\n');
else
    fprintf('The polynomial p(x) = ax^2 + bx + c has complex roots.\n'); 
end