summaryrefslogtreecommitdiff
path: root/3841/CH4/EX4.7/Ex4_7.sce
blob: 773e450034a79c6949c71f92eee43c828fc0a789 (plain)
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)