Why energy of electron is negative?

cbse
structureofatom

#1

When electron is at infinite distance from nucleus,its energy is zero. When it is brought near to the nucleus, energy becomes less than zero, i.e., negative due to force of attraction between nucleus