summaryrefslogtreecommitdiff
path: root/24/DEPENDENCIES/Example2_1a.sce
blob: 8bce2b73d08344f9a7afe3a377d79bd00a57fdfe (plain)
1
2
3
4
5
6
7
8
9
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)