RATIONALE: Megestrol acetate may help improve appetite and lessen weight loss caused by cancer. PURPOSE: This clinical trial studies megestrol acetate in treating weight loss or anorexia in young patients with malignancies who are undergoing radiation therapy and/or chemotherapy.