I was trying to calculate the circumference for a right triangle, but my instructor did not teach us the method to do the square root.
Here's what I was trying to do.
circumference = base * height + square_root(base * base + height * height);
Someone please help me out. Thanks in advance.
edit: oops, sorry I'm talking about circumference :Q
Here's what I was trying to do.
circumference = base * height + square_root(base * base + height * height);
Someone please help me out. Thanks in advance.
edit: oops, sorry I'm talking about circumference :Q
