This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 7;
y_correct = 8256;
assert(isequal(sum_int(x),y_correct))
ans =
8256
|
2 | Pass |
%%
x = 10;
y_correct = 524800;
assert(isequal(sum_int(x),y_correct))
ans =
524800
|
Project Euler: Problem 6, Natural numbers, squares and sums.
1018 Solvers
Who knows the last digit of pi?
557 Solvers
Rounding off numbers to n decimals
1050 Solvers
Spot the First Occurrence of 5
365 Solvers
Convert from Fahrenheit to Celsius
7183 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!