If your computer has an HDMI port, then purchase an HDMI cable to connect it to your TV.
If your computer has a DVI connection, then purchase a DVI to HDMI cable and use that.
If your PC only has a VGA connection, and your TV has a VGA connection, you can use that as a last resort.