//Example No.6.1 //Page No.185. clc;clear; Mc = 12;// Mc is the mass of one carbon atom. r = 0.071*10^(-9);//radius -[m]. D = ((8*Mc)/(6.022*10^(26)*((8*r)/(sqrt(3)))^(3)));//density of the diamond. printf("\nThe density of diamond is %.1f kg/m^3",D);