--> //initializations

--> hc1=50 //cm (capillary rise in silt)
 hc1  = 

   50.


--> hc2=30 //cm (capillary rise in sand)
 hc2  = 

   30.


--> //calculations

--> //hc=0.3/d

--> d1=0.3/hc1 //(pore size in silt)
 d1  = 

   0.006


--> d2=0.3/hc2 //(pore size in sand)
 d2  = 

   0.01


--> D=d2-d1 //(difference in pore size)
 D  = 

   0.004


--> //results

--> printf('difference in pore size of the two soil=%f',D) //cm
difference in pore size of the two soil=0.004000