blob: e80a608a3c0d5060e7cb4d6f19141ae0082ded02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear
//given
//find out weight of hydrogen
//
//1lb hydrogen +8 lb oxygen gives
T=1.+8.
//this problem deals with 24 lb oxygen so
t=24./8.
//multiplying all equation by 3
TT=3+24
printf("\n \n 3 lb of hydrogen requires %.2f lb",TT)
|