How do I combine 2 codes in one program?

Also good is: