summaryrefslogtreecommitdiff
path: root/3537/CH8/EX8.1/Ex8_1.sce
blob: f11a0a639b01781599eb8d385a1ff410c18c832b (plain)
1
2
3
4
5
6
7
8
//Example 8_1
clc();
clear;
//To calculate the depth of the ocean
v=1500                        //units in meter per second
t=1.33                       //units in seconds
D=(v*t)/2
printf("The depth of the ocean is %.2f meters",D)