If we express the energy of a photon in KeV and the wavelength in angstroms, then energy of a photon can be calculated from the relation
E=12.4λ
Energy of photon E=hcλ(joules)=hceλ(eV)
⇒EeV=6.6×10−34×3×1081.6×10−19×λ(∘A)=12375λ(∘A)
⇒E(keV)=12.37λ(∘A)≈12.4λ