Pineapple is not a gymnosperm but it is an angiosperm.
Gymnosperms belong to the Plantae kingdom and the Embryophyta subkingdom.
Gymnosperms are seed-bearing plants known as naked seeds and do not produce fruits, unlike angiosperms. On the surface of scales or leaves, or at the terminals of stalks, these plants develop cone-like structures.
Angiosperms are flower-producing plants that bear their seeds in the fruits.
A pineapple is a fruit made up of numerous intertwined berries. It is also a bunch of berries that have fused, rather than a single fruit.
The pineapple (Ananas comosus) is the most economically important tropical plant with edible fruit in the Bromeliaceae family and clade 'Angiosperms.'