The electric flux through a surface is the surface integral of the normal component of the electric field E over that surface. As net flux given by,S∮E⋅dS=0, therefore total number of flux lines entering the surface must be equal to the number of flux lines leaving it.