Hey everytime I run this it outputs the else of neither no matter what I enter. And I checked my conditions and the logic seems right but maybe I'm wrong. Help please!
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n1, n2, n3;
cout<<"Enter the three sides of a triangle\n";
cin>> n1, n2, n3;
if(n1<0 || n2<0 || n3<0)
abs(n1);
abs(n2);
abs(n3);
if(n1 == n2 && n1==n3 && n2 == n3)
{
cout<<"Equilateral";
}
else if(n1 == n2 || n1==n3 || n2 == n3)
{
cout<<"Isosceles";
}
else if(n1*n1+n2*n2 == n3*n3 || n1*n1+n3*n3 == n2*n2 || n3*n3+n2*n2 == n1*n1)
{
cout<<"Right-angle";
}
else
{
cout<<"Neither";
}
return 0;
}