How can I gain weight while dieting and exercising?

To gain weight while dieting and exercising, you should focus on eating nutrient-dense foods that are high in calories and protein. You should also make sure to get enough rest and recovery time between workouts. Additionally, you should consider adding weight-training exercises to your routine to help build muscle mass. Finally, you should track your progress and adjust your diet and exercise routine as needed.