The ploidy of the endosperm in gymnosperms and angiosperms respectively are
In gymnosperms the endosperm represents the female gametophyte. Therefore, it is haploid.
In angiosperms the endosperm is formed from PEN. PEN develops after the fusion of secondary nucleus with the male gamete. Therefore, it is triploid.