clc //initialisation of variables M= 107.88 //gm z= 4 v= 4.086 //A N= 6.023*10^23 //CALCULATIONS d= z*M/(v^3*10^-24*N) //RESULTS printf (' Density of silver = %.3f gm cm^-3',d)