One of my friend told me that photon is massless but I think that (please correct me if i was wrong), Albert Einstein's equation $E=mc^2$.
This equation stands for energy, now as we know energy is also, $E= hc/\lambda$ here h is planck constant and c is speed of light and $\lambda$ is wavelenght of upcoming photons wavelenght so from both equation $mc^2 =hc/\lambda$ solving further $m=h/c\lambda$ hence the photon is not massless.
Tell me where I am wrong.