Answer
Testes and Ovaries are the two glands which function as endocrine glands as well as exocrine glands.