Answer to Question #312862 in C++ for Muhammad Sohail

Question #312862

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?

1
Expert's answer
2022-03-16T18:31:26-0400

Here is program:

int main()
{
	int a, b, c;
	cin >> a;
	cin >> b;
	cin >> c;
	if (a > b > c)
	{
		cout << "Error!" << endl;
	}


}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment