Ethiopian multiplication: Difference between revisions

Line 626:
throw new Exception("muliplier cannot be negative");
}
static int doubleNum(int n) { return n * 2; }
static int halveNum(int n) { return n / 2; }
static bool isEven(int n) { return !(n % 2); }
 
int result;
Anonymous user