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
2년 초과 전 | 1
