Sudarshan Agrawal
Attivo dal 2018
Followers: 0 Following: 0
Statistica
RANK
116.476
of 295.673
REPUTAZIONE
0
CONTRIBUTI
2 Domande
1 Risposta
ACCETTAZIONE DELLE RISPOSTE
0.0%
VOTI RICEVUTI
0
RANK
of 154.257
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. Write a function called smallest_multiple that returns a uint64, the smallest positive number that is evenly divisible by all of the numbers fr
function a=smallest_multiple(n) a=1; x=mod(a,(1:n)); while sum(x)~=0 a=a+1; x=mod(a,(1:n)); if a>in...
oltre 6 anni fa | 0 risposte | 0
0
risposteRisposto
Write a function called fare that computes the bus fare one must pay in a given city based on the distance travelled. Here is how the fare is calculated: the first mile is $2. Each additional mile up to a total trip distance of 10 miles is 25 cents.
function cost = fare(dist,age) x=round(dist); if x>=0 && x<=1 f=2; if x>1 && x<=10 f=2+(0.25*(...
Write a function called fare that computes the bus fare one must pay in a given city based on the distance travelled. Here is how the fare is calculated: the first mile is $2. Each additional mile up to a total trip distance of 10 miles is 25 cents.
function cost = fare(dist,age) x=round(dist); if x>=0 && x<=1 f=2; if x>1 && x<=10 f=2+(0.25*(...
oltre 6 anni fa | 0
Domanda
Write a function called fare that computes the bus fare one must pay in a given city based on the distance travelled. Here is how the fare is calculated: the first mile is $2. Each additional mile up to a total trip distance of 10 miles is 25 cents.
function a = fare(dist,age) x=round(dist); if x>=0 && x<=1 fare=2; if x>1 && x<=10 fare=2+(0.2...
oltre 6 anni fa | 4 risposte | 0