0

I'm writing a program that asks the user to input 3 numbers, then outputs the shape of the triangle. This is what I have so far, but it still doesn't work.

Can someone help?

Thanks!

```
#include <iostream>
using namespace std;
enum triangleType {scalene, isosceles, equilateral, noTriangle};
void triangleShape (int shape);
int main()
{
float A, B, C;
int shape;
cout<<"Enter the length of three sides of a triangle"<<endl;
cin>>A;
cin>>B;
cin>>C;
triangleShape (shape);
if (shape == equilateral)
cout<<"The shape of the triangle is: equilateral";
else if (shape == isosceles)
cout<<"The shape of the triangle is: isosceles";
else if (shape == scalene)
cout<<"The shape of the triangle is: scalene";
else
cout<<"The shape of the triangle is: noTriangle";
cout<<endl;
return 0;
}
void triangleShape (int shape) //my instructor said to make shape of
//type triangleShape, but I'm not sure
//what that means, plz explain
{
int A, B, C;
int shape;
if ((A == B)&&(B == C))
shape = equilateral;
else if ((A == B)||(B == C)||(A == C))
shape = isosceles;
else if ((A != B)||(B != C)||(A != C))
shape = scalene;
else
shape = noTriangle;
}
```