1 2 3 4 5 6 7 8
clear //given //find the ratio of weight of certain volume Oil=1*8.34 g=0.89 //weight of the oil equal to weight of 1 gal w=Oil*g printf("\n \n wegiht of gal %.2f lb per gal",w)