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
3 years 前 | 1
