Based on the adult manga by Midori no Ruupe.

Is there an animal which, both gives milk and lays eggs?

Monotremes is the species that satisfies both things.
Basically they are mammals that lay eggs and produce milk through mammary glands.The existing monotreme species are the platypus and four species of echidnas.