How do both genes and environment influence traits?

Genes code for the proteins that make up your body and effect your genotype. While environmental effects such as eating habits can effect how ones phenotype (or physical characteristics) looks.