This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
wage = 10;
salary_correct = wage * 40 * 50;
assert(isequal(ComputeSalary(wage),salary_correct))
ans =
20000
|
2 | Pass |
%%
wage = 30;
salary_correct = wage * 40 * 50;
assert(isequal(ComputeSalary(wage),salary_correct))
ans =
60000
|
3 | Pass |
%%
wage = 12.50;
salary_correct = wage * 40 * 50;
assert(isequal(ComputeSalary(wage),salary_correct))
ans =
25000
|
Project Euler: Problem 5, Smallest multiple
397 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
547 Solvers
250 Solvers
272 Solvers
249 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!