1 2 3 4 5 6 7 8 9
clc //initialisation of variables T= 27 //C R= 0.08206 //cal/mol T W= 28.6 //gms //CALCULATIONS d= W/((273.2+T)*R) //RESULTS printf (' density = %.3f g l^-1',d)