SE 3800: triangle.c

Description

The Triangle Classification program triangle.c classifies triangles as equilateral, isosceles, obtuse, acute, or right based on the sizes of the legs.

Input Format

Three integer arguments are given when the command is invoked. The integers must be written from high to low, and each must be greater than zero. For example, type the command
        % triangle 3 2 1

Output Format

The output is a single sentence such as
        Sides with length 3, 2, and 1 form an acute triangle.

Operational Considerations

There are no special operational conditions. However, errors should be reported for numbers that do not satisfy the above constraints and for specifying too few arguments.

Executable

Windows executable: triangle_exe. Rename this to "triangle.exe" after downloading.