Ethiopian multiplication: Difference between revisions
Content deleted Content added
m →{{header|ActionScript 2.0}}: Change this header to a works with |
→{{header|C}}: cleanup |
||
Line 390:
=={{header|C}}==
<lang c>#include <stdio.h>
▲int ethiopian(int plier,
{
for (; left; left >>= 1, right <<= 1, printf("\n")) {
printf("%4d %6d", left, right);
else printf("
}
printf("-------------\n %5d\n", result);
▲ result += plicand;
▲ return result;
}
int main()
{
}</lang>
|