Anonymous user
Ethiopian multiplication: Difference between revisions
Undo revision 78589 by A Zebrahead (Talk) Well that didn't really do anything
(Undo revision 78589 by A Zebrahead (Talk) Well that didn't really do anything) |
|||
Line 946:
In order to run this program you need to have MATLAB already installed. 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.
<lang matlab>function A=Ethiopian(a,b)
j=1;
i=1;
Line 961:
end
A=sum(b);</lang>
=={{header|MMIX}}==
|