In a flower, the parts that produce male and female gametes are respectively:
In a flower, anther produces male gametes and ovary produces female gametes.