summaryrefslogtreecommitdiff
path: root/446/CH2/EX2.1/2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '446/CH2/EX2.1/2_1.sce')
-rwxr-xr-x446/CH2/EX2.1/2_1.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/446/CH2/EX2.1/2_1.sce b/446/CH2/EX2.1/2_1.sce
new file mode 100755
index 000000000..5d88cb2ac
--- /dev/null
+++ b/446/CH2/EX2.1/2_1.sce
@@ -0,0 +1,6 @@
+clear
+clc
+disp('Exa-2.1');
+v1=60; v2=40 //Velocities of cars wrt to observer in km/hr
+vr=v1-v2; //relative velocity
+printf('The value of relative velocity is %4.f km/h.',vr);