blob: 141d8afeed5a105d2f1f26912097693b01788b8b (
plain)
1
2
3
4
5
6
7
8
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);
|