X-rays, gamma rays and beta particles are all used inmedicine to treat internal organs. X-rays are produced by firing electrons at a metal target and gamma rays are emitted by the nucleus of radioactive atoms. Gamma rays are used to kill cancer cells, to sterilise medical equipment and in radioactive tracers.