Problem = write a program that takes as input from the user three sides of a triangle(numbers),checks and displays whether the triangle is right angled triangle or not?
Here is program:
int main()
{
int a, b, c;
cin >> a;
cin >> b;
cin >> c;
if (a > b > c)
{
cout << "Error!" << endl;
}
}
Comments
Leave a comment