![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/18858398_1593137397382_DEF.jpg)
Dante Gallo Torres
Followers: 0 Following: 0
Feeds
已回答
Calculate taxi fare by giving multiple inputs and single output
You can use matrix for this problem: function fare = taxi_fare(d, t) fare = [1 ceil(d-1) ceil(t)] * [5; 2; 0.25] end
Calculate taxi fare by giving multiple inputs and single output
You can use matrix for this problem: function fare = taxi_fare(d, t) fare = [1 ceil(d-1) ceil(t)] * [5; 2; 0.25] end
1 year 前 | 1