Disclaimer: This might seem like a very dumb question. But I rather ask it and learn than to never ask at all and always wonder. Also, to me it is confusing, you guys are probably much more advance in math than I am.
Let's say you have a "zig-zag step" pattern, you can show that the the total length of the diagonal zig-zag step is 20 for a 10 in by 10 in width and height. As shown in the picture. But as you make the "zig-zag" smaller and smaller the "zig-zag" total should still remain 20, but instead it seems to be $10\sqrt{2}$. I get this it is a triangle now and this is the formula for the diagonal of the triangle, but if the diagonal can really be made of this zig-zag step pattern where the zig-zag are infinitely small, shouldn't it be 20 by that logic?
I get the Pythagorean theorem and everything, but in terms of calculus a the zig zag steps can turn into a triangle by making the length of an individual zig-zag infinitely small, making infinitely many zig-zags. So why is it $10\sqrt{2}$, over $20$.