Prove by induction that the determinant of an upper triangular matrix is equal to the product of the diagonal elements.