blob: 5c4a9e20b7fe17b8cd024a7ef384aaab76850765 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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 !");
|