summaryrefslogtreecommitdiff
path: root/1301/CH25/EX25.6/ex25_6.sce
blob: 8649478f1819a78da22f84e8ab383f6de74352de (plain)
1
2
3
4
5
6
7
8
clc;
c=12.01;   //mass of carbon
h=1.008;  //mass of hydrogen
o=16.00;  //mass of oxygen
mass=((6*c)+(12*h)+(6*o));     //calculating formula mass
m=500*454;        //mass of glucose in g
moles=m/mass;  //moles 
disp(moles,"Moles = ");  //displaying result