diff options
Diffstat (limited to '24/DEPENDENCIES/Example2_1a.sce')
-rwxr-xr-x | 24/DEPENDENCIES/Example2_1a.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/24/DEPENDENCIES/Example2_1a.sce b/24/DEPENDENCIES/Example2_1a.sce new file mode 100755 index 000000000..8bce2b73d --- /dev/null +++ b/24/DEPENDENCIES/Example2_1a.sce @@ -0,0 +1,10 @@ +//Given that
+velocity = 70 //in km/h
+distance_covered = 8.4 //in km
+next_time = 30 //in min
+next_walk = 2 //in km
+
+//Sample Problem 2-1a
+printf("**Sample Problem 2-1a**\n")
+overall_displacement = distance_covered + next_walk
+printf("Overall displacement from begining of the drive to the station is %f km", overall_displacement)
\ No newline at end of file |