2023澳门正版免费精准资料
使用函数来进行幂运算。下面是一个例子:
#include <iostream> #include <cmath> int main() { int n=3; // 计算10的3次方 double result = std::pow(10, n); // 打印结果 std::cout << result << std::endl; return 0; }
评论列表