This is quite complicated; Microsoft developed PC-DOS for IBM in 1981 and shortly afterwards started selling MS-DOS - which was a different product - to other companies. However, as time passed "IBM PC Compatibility" became an important selling point and in 1987 MS-DOS and PC-DOS were essentially the same product.