pow()返回值是double 浮点数要用%lf输出
printf("\n%lf",pow(9,9));
你n是 int 整数类型n = pow(9,9);对n赋值时会把返回的double 浮点数转成 int 整数类型,输出n是用%d但是直接输出pow(9,9)要用%lf
如有帮助,请点击我的回答下方的【采纳该答案】按钮帮忙采纳下,谢谢!