blob: 24d2758aa9103e5e6c5b2ef701938c41c30f3402 (
plain)
1
2
3
4
5
6
7
8
9
|
//chapter 17: Ex2
clc;
clear;
close;
dist=750; time=2*60+30; //converting into seconds
speed=dist/time;
speedKmhr=speed/(5/18);
mprintf("The speed of cyclist is %d km/hr",speedKmhr);
|