There's a plethora of services that can teach you the basics of programming, some free, some not. I would recommend Code Academy as a free service to grasp general concepts of how programming works. However, if you're trying to make money to buy a PC doing this, you're going to soon realize it's going to take a ton of work of studying to actually grasp languages enough to actually make money doing freelance work. With this in mind, you should also note that entry-level freelance programming is probably going to be a competitive place going up against people who have portfolios of coding projects, git repositories, etc.
All of this is time consuming work, which if you're willing to put up with, is beneficial, but if all you're trying to achieve is buying a gaming PC by quickly learning a programming language, then you're going to have a rough time doing so.