to find valence electrons from atomic number

can anyone please help me finding valence electrons from atomic number in c++...
Hi,

C++ does not deal with electrons or atomic numbers.

Do you have some code, and are you prepared to be less rude than your other posts?
any formula which we can use to find valence electrons?
Simply google "number of electrons in atomic shells". They are 2,8,18,32,....,2(n^2). Where n is the principal number of the atomic shell

BTW you should at least search about your problems first and then come to the forum if you are stuck somewhere.
Last edited on
Topic archived. No new replies allowed.