[tex]\texttt{Diagonala imparte dreptunghiul in 2 triunghiuri } \\
\texttt{dreptunghice congruente in care diagonala } \\
\texttt{este ipotenuza iar laturile dreptunghiului sunt catete.} \\ \\
d = \sqrt{5^2 + 12^2} = \sqrt{25 + 144} = \sqrt{169} = \boxed{13~cm}[/tex]