The coconut and mango fruits are
Berries
Drupe
Hesperidium
Pomes
In mango and coconut, the fruit is known as a drupe.