As a teen at Lakeside Prep School, Gates wrote his first computer program on a General Electric computer. It was a version of tic-tac-toe where you could play against the machine.