Write a script that will accept the sides of a triangle, let them be “a”, “b”, “c”. Based on these
variable values determine if the triangle is right angled or not, by using Pythagoras theorem.
Hint: if c2 = a2 + b2 then the given sides are right angled triangle else not a right-angled triangle
Comments
Leave a comment