Question: how to gain weight by working out?
Answer: Heavy compound exercises like Squats and Deadlifts are the best exercises to gain muscle weight. They stress your body and muscles with heavy weights. This increases your testosterone levels and makes you build muscle. Start light so you can focus on form, and gradually increase the weight.