It happened at Norglen Grove in west Belfast at about 20:30 BST on Sunday.
He was treated in hospital for injuries that are not thought to be life-threatening.
Police said two men were seen leaving the area on foot after the shooting, and they have appealed for anyone with information to contact them.
A 21-year-old man has been shot in the leg in what police say was a paramilitary-style shooting.