变式 3:递归求 x 的 n 次方 👁️ 23 人浏览 💬 0 人评论 ❤️ 添加收藏 输入 x 和 n(n ≥ 0),输出 x 的 n 次方(用 long long)。递归:x⁰ = 1;xⁿ = x × xⁿ⁻¹。例如输入 5 3,输出: 125