- #1
Daniel1992
- 22
- 0
Homework Statement
I have a program which will sort out three inputted variables into order from lowest to highest. I now must get the program to work out if these 3 values could be the sides of a right angled triangle.
Homework Equations
I am going to use a^2+b^2=c^2 to solve this.
The Attempt at a Solution
Here is the code I used to attempt to solve the problem but I get a syntax error when I try to compile the code.
If (a**2+b**2=c**2) THEN
PRINT*,"These values can make the sides of a right angled triangle"
ELSE
PRINT*,"These values can not make the sides of a right angled triangle"
ENDIF
Any help would be appreciated :)