You have to confirm if all the numbers total is equal to 180ยบ, if so, this is a triangle, if not, it isn't. Simpler as that.
I've made an example for you:
#include <stdio.h>
int main() {
float a,b,c,f1,f2,f3;
printf("Input the three floating point values of the triangle: ");
scanf("%f%f%f",&a,&b,&c);
if (a + b + c == 180){
printf("the values are valid\n");
} else {
printf("the values are not valid to form a triangle");
}
return 0;
}
I used some parts of what u made.
Ur welcome :)
In this language, "&&" mean "And" and "||" mean "or".