elseif (sqrt(S*(S-A)*(S-B)*(S-C)) <= 0)
{
cout << "THIS TRIANGLE DOES NOT EXIST";
}
or
1 2 3 4
else
{
cout << "THIS TRIANGLE DOES NOT EXIST";
}
This is because when you started an if statement. After that you said else, which means all other cases that are different than the initial if conditions. So you wouldn't say else (sqrt(S*(S-A)*(S-B)*(S-C)) <= 0), you would need to say else IF and then the condition.