kenyan eliud kipchoge set a new world record for men of 2:01:39 on september 16, 2018. assign his average speed in km/h to the variable marathon. the marathon distance is 42.195 kilometers. in matlab

main.m
marathon_distance = 42.195;   % km
time_in_hours = 2 + 1/60 + 39/3600;   % in hours
marathon = marathon_distance / time_in_hours;   % km/h
fprintf("Eliud Kipchoge's average speed in the marathon was %0.2f km/h.\n", marathon);
226 chars
5 lines

Output:

main.m
Eliud Kipchoge's average speed in the marathon was 20.70 km/h.
63 chars
2 lines

gistlibby LogSnag