hye there...I have a question.. I'm the beginner of c++ programming.
Question 1:
In a right triangle, the square of the length of one side is equal to the sum of the square of the length of the other two sides. write a program that prompts the user to enter the length of three sides of a triangle and then outputs a message indicates whether the triangle is a right triangle.
This is an answer that i come out. please correct if i'm wrong. please..
braces are needed around statement-block only if statement-block contains more than one line of code, otherwise they are optional. In your code above, you have only one line of code, so you can safely omit them.