I want to let the user input any three values that would indicate the dimensions of the sides of a triangle. The conditional statements in the code will classify whether the sides will make up a triangle. If it does make a triangle, it will display if the triangle is scalene or right or both.

```
#include <stdio.h>
int main(void)
{
//Declare the variables for the sides of the triangle
float a; //first side
float b; //second side
float c; //third side
float scalene; //check for scalene
float right; //check for right
float ans; //check if sides are a triangle
float rep; //check if user wants to continue after the sides are not a
triangle
//Get user inputs for the sides of the triangle
printf("Input the first side of the triangle: ");
scanf("%f", &a);
printf("Input the side for the second side of the triangle: ");
scanf("%f", &b);
printf("Input the last side of the triangle: ");
scanf("%f", &c);
//Conditional statements:
//Determine if the sides make up a triangle
>if ((a+b)<c || (b+c)<a || (a+c)<b)
>{
ans=0;
}
else
{
ans=1;
}
//If the sides make up a triangle, is the triangle scalene? If scalene,
//each side is unique to the others
for (ans=1;ans<3;ans++)
{
if (a==b || a==c || b==c)
{
scalene=0;
>}
else
{
scalene=1;
}
//if the sides make a right triangle, they would satisfy one of the
//following Pythagorean theorem
if ((a*a+b*b)==(c*c) || (b*b+c*c)==(a*a) || (a*a+c*c)==(b*b))
{
right=1;
}
else
{
right=0;
}
for (ans=0;ans<2;ans++)
>{
printf("Your sides do not make a triangle. Enter 1 if you would like to
input new values. Enter any other number to finish: \n");
scanf("%f", &rep);
}
if (rep==1) //repeat the steps again
{
printf("Input the first side of the triangle: ");
scanf("%f", &a);
printf("Input the side for the second side of the triangle: ");
scanf("%f", &b);
printf("Input the last side of the triangle: ");
scanf("%f", &c);
>}
else
{
printf("Thank you for using Triangle Check. Have a nice day!");
return 0;
}
}
//Display the results to the user
if (scalene==1 && right==1)
{
printf("Your triangle is both a scalene and right!");
return 0;
}
else if (scalene==0 && right==1)
{
printf("Based on your sides, it is a right triangle!");
return 0;
}
else if (scalene==1 && right==0)
{
printf("Based on your sides, it is a right triangle!");
return 0;
}
else
{
printf("Your triangle is neither right or scalene.");
return 0;
}
return 0;
}
```

If I enter 3, 4, 5 for the sides and I should get that the triangle makes up a right triangle.

But I get that the sides do not make up a triangle.