递归乘法
class Solution { public int multiply(int A, int B) { if (B == 0) { return 0; } return A + multiply(A, B - 1); } }
京公网安备 11010502049817号