Apple used to include XCode on the DVD (or CD set) that came with their computers. Today, it's on the app store instead, and is free. You would only have to pay to get your app included on the app store. To program for yourself, on the Mac, is free.
Microsoft makes a free version of Visual Studio, but it's rather limited. You can download it.
Of course, neither of these is actually *included* within the OS in terms of being there by default, pre-installed, on every new computer. If that's what you meant, well...Apple never included such a thing on the Mac, ever (though the Apple II had it), and Qbasic went away with Windows 95, I think.