using set nested loops write c program 0

Using a set of nested for-loops, Write a c++ program. to print a neatley labeled and formatted table of the wavelengths of the first 10 spectral lines for first six sereis of hydrogen.

I have allready done allot of the work im just stuck and confused with the nested loops and how to dispaly the data.

 

 

the Rydberg formula is used to calculate the wavelength. and the table of spetral lines below it

 

 

n1 n2 Name Converge toward
1 2 → ∞ Lyman series   91.13 nm (UV)
2 3 → ∞ Balmer series  364.51 nm (Visible)
3 4 → ∞ Paschen series  820.14 nm (IR)
4 5 → ∞ Brackett series 1458.03 nm (Far IR)
5 6 → ∞ Pfund series 2278.17 nm (Far IR)
6 7 → ∞ Humphreys series 3280.56 nm (Far IR)