How to Prevent Computer Viruses?

The best way to prevent computer viruses is to have very good virus scanner. Other ways are to avoid questionable sites, avoid pornography, and avoid downloading anything from the internet to your computer.