Using the Pythagorean theorem, we can pretty much find the length of diagonals of 2d shapes(squares, rectangles, etc).
$$ c = \sqrt{a^2 + b^2}$$
But this property holds true for higher dimensions as well. All we need to do is take the root of total sum of squares of different dimensions.
Third Dimension: $$ d = \sqrt{x^2 + y^2 + z^2}$$ Any dimensions $$ (x_1^2, x_2^2,...x_n^2) = \sqrt{x_1^2 + x_2^2 + ....x_n^2}$$
The way I think of this is like vectors. This resultant vector(diagonal) produces the same effect of the combined different vectors.
But why is such the case? Are there any other explanations for the cause of this? And is there a limit to the dimensions this property holds true(like the 89th dimension)?