blob: 9034dad22d40edd77d8ff2577aebf2533a39e5f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example number 2.10, Page number 2.35
clc;clear;close
// Variable declaration
v=1500 // in m/s
t=1.33 // in s
// Calculation
d=(v*t)/2 // in m
// Result
printf("The depth of the sea = %.1f m",d)
|