Ethiopian multiplication: Difference between revisions
Content added Content deleted
(→Python: With tutor. More Functional: Consolidated if statements) |
m (→{{header|Java}}: I think this could loop infinitely if "first" is 0 and i think this might fix that) |
||
Line 1,127: | Line 1,127: | ||
sum += second; |
sum += second; |
||
} |
} |
||
}while(first |
}while(first > 1); |
||
System.out.println(sum); |
System.out.println(sum); |