function str=mytriangle(side1,side2,side3)

% This is a file that takes three sides and produces 
% a string output that states this is a triangle or not.

all_sides=[side1,side2,side3];
vals=sort(all_sides);
highest_val=vals(end);

add_smaller_sides=vals(1)+vals(2);

if add_smaller_sides>highest_val
	str='This forms a valid triangle!';
    %Starts the extra credit
    if (side1==side2)&(side2==side3)
	str='This is an equilateral triangle!';
    elseif side1==side2|side2==side3|side1==side3
	str='This is an isoceles triangle!';
    end
%Ends the extra credit
else
	str='This does not form a valid triangle.';
end

