using dimention show that 1joile =10 eag

Do you mean one joule=ten ergs?

one joule=1N*m=1kg*(m/s^2)*100cm=1000g*100cm/s^2=1000*100*100 g*cm^2/s^2
= 10^7 g*cm^2/s^2=10^7 ergs

So that is that, and it is not what you asked to show.