Can you find the diagonal using the law of cosines?
MartFL gave you a powerful hint.
But the answer is even simpler.
Consider the zigzag line.
We want the hypotenuse of a 4-by-8 right triangle.Code:
| . 4
: d. |
: . |
5: . |5
: . |
* - - - - *
Then the side of the square is:
Therefore, the area of the square is:
I'm pretty sure I'm supposed to have an integer value for the answer
Using soroban's technique, you will get an integer.
yeah I figured that out after I posted that. lol im stupid :p
Thanks for the help guys.