// Example 2_7 clc;funcprot(0); // Given data //The block has a width W, a height H and a specific gravity SG. // GM=0; //Solution SG=(3-sqrt(3))/6; printf("\nSG<=%0.4f",SG) SG=(3+sqrt(3))/6; printf("\nSG>=%0.4f",SG) printf("\nIce cubes and styrofoam cubes will float upright, but not soap cubes !");