Dear student,
The mass of 1 atom = 3.985410-23 gm
therfore the mass of 6.02 1023 number of atoms = 3.985410-23 6.02 1023 = 23.99 gm/mol (gram atomic mass )
Now the number of atoms in 23.99 gm is = 6.02 1023
Then the number of atoms in 1 gm of element = 6.02 1023 / 23.99 = 0.25 1023 numder of atoms
Regards