diff options
Diffstat (limited to '3720/CH1/EX1.3/Ex1_3.sce')
-rw-r--r-- | 3720/CH1/EX1.3/Ex1_3.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/3720/CH1/EX1.3/Ex1_3.sce b/3720/CH1/EX1.3/Ex1_3.sce new file mode 100644 index 000000000..141d8afee --- /dev/null +++ b/3720/CH1/EX1.3/Ex1_3.sce @@ -0,0 +1,9 @@ +// Example 1_3
+clc;clear;funcprot(0);
+// Given values
+rho=850; // Density of oil in kg/m^3
+V=2; // Volume of the tank in m^3
+
+// Calculation
+m=rho*V;// kg
+printf('The amount of mass in the tank,m=%0.0fkg\n',m);
|