Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
dividend = '122333444455555666666777777788888888999999999';
divisor = 42;
quotient_correct = '2912701058465611111113756614021164023809523';
remainder_correct = 33;
[quotient,remainder]=strdiv(dividend,divisor);
while and(numel(quotient)>0,quotient(1)=='0')
quotient=quotient(2:end);
end
assert(isequal([quotient_correct ' ' num2str(remainder_correct)],[quotient ' ' num2str(remainder)]))
|
9866 Solvers
Get the area codes from a list of phone numbers
532 Solvers
4325 Solvers
Back to basics 8 - Matrix Diagonals
781 Solvers
169 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!