The only animal that gives both eggs and milk is the monotreme.
Monotremes are a group of mammals that lay eggs. They are the only mammals that do this. There are only five species of monotremes in the world: the platypus and four species of echidnas.
Monotremes are unique animals that have features of both reptiles and mammals. They have a pouch like marsupials, but they lay eggs like reptiles. They also have a cloaca, which is a single opening for their reproductive, urinary, and digestive systems.
While monotremes are not as common as other mammals, they play an important role in their ecosystems. They are important predators and help to control populations of insects and other small animals.