In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other 2 sides. Write a program that prompts the user to enter the length of three sides of a triangle, and then outputs a message indicating whether the triangle is a right triangle.

Notes:

◦You may use integers and insist the user enter integers.

◦You may not insist which order the user must enter each side, for example, you may not insist the user enter the hypotenuse first or last - so be sure to test all possibilities for a right triangle.

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

#include <iostream>

using namespace std;

int main()

{

int side1, side2, side3;

cout << "Please enter in the length of side 1(only integers please): ";

cin >> side1;

cout << "Please enter in the side length of 2(only integers please): ";

cin >> side2;

cout << "Please enter in the side length of 3(only integers please): ";

cin >> side3;...

This is only a preview of the solution. Please use the purchase button to see the entire solution