// Example 2.5, page no-117 clear clc spe_grav_water=1 spe_grav_X=spe_grav_water*100/50 wt_dens_water=1000 wt_dens_X=wt_dens_water*2 printf("Weight Density of X = %d kg/m^3",wt_dens_X)