0

Please point problems in this code

I'm creating a c++ program to find electronic configuration of atoms with atomic number. In output, I'm expecting z=2 and nat=10, but it is not outputting as my expectation. I request you to point mistakes in this code . Thank you in advance. https://code.sololearn.com/c4f0CQZfYp2G/?ref=app

24th May 2018, 1:45 PM
skt 52087102
skt 52087102 - avatar
2 Réponses
0
line no.25, 27 conditions of for loop are wrong it should be z<=5 and y<=z
24th May 2018, 1:50 PM
‎ ‏‏‎Anonymous Guy
0
It worked. Thank you
25th May 2018, 7:09 AM
skt 52087102
skt 52087102 - avatar