diagonálok
A diagonal is a line segment connecting two non-adjacent vertices of a polygon or polyhedron. In a polygon, a diagonal connects two vertices that do not share a common side. For example, a square has two diagonals, each connecting opposite corners. A pentagon has five diagonals. The number of diagonals in a polygon with n vertices can be calculated using the formula n(n-3)/2. This formula arises from the fact that from each vertex, one can draw a diagonal to every other vertex except itself and its two adjacent vertices.
In three-dimensional shapes like polyhedra, diagonals can also exist. These diagonals can connect two vertices that