Anonymous user
Ethiopian multiplication: Difference between revisions
→{{header|MATLAB}}: Marked incorrect: program needs to define three functions to halve double and test odd/even as stated in the task description
m (might be expected...) |
(→{{header|MATLAB}}: Marked incorrect: program needs to define three functions to halve double and test odd/even as stated in the task description) |
||
Line 985:
=={{header|MATLAB}}==
{{incorrect|MATLAB|program needs to define three functions to halve double and test odd/even as stated in the task description.}}
Save the program as Ethiopian.m, then into the command prompt type Ethiopian(a,b) where a & b are the two numbers you require to multiply. To see how this function operates remove the semi-colons.
|