Sudarshan Agrawal
Followers: 0 Following: 0
Statistiques
RANG
116 444
of 295 467
RÉPUTATION
0
CONTRIBUTIONS
2 Questions
1 Réponse
ACCEPTATION DE VOS RÉPONSES
0.0%
VOTES REÇUS
0
RANG
of 20 234
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 153 912
CONTRIBUTIONS
0 Problèmes
0 Solutions
SCORE
0
NOMBRE DE BADGES
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
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...
plus de 6 ans il y a | 1 réponse | 0
0
réponseWrite 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*(...
plus de 6 ans il y a | 0
Question
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...
plus de 6 ans il y a | 4 réponses | 0