Carbon and nitrogen were determined in iron, steel, and silicon by photon activation followed by chemical separation. Nitrogen was determined in the same types of samples by reactor neutron activation, chemical separation, and liquid scintillation counting. The comparison of two methods based on different radioactive elements is a way to control the accuracy of the determination.