我是刚入学的新生这个n次方怎么打,还有图上哪里有错误。凑字数
如下,有用记得给个采纳呐
#include <stdio,h>
#include <math.h>
int main()
{
int a,b;
int t = pow(2,3);//t为8
int t2 = pow(a,b);//a的b次方
}
pow函数 ,添加math.h头文件
#include <stdio.h>
#include <math.h>
int main()
{
pow(2,4); //结果16 2的4次方
return 0;
}
不知道你这个问题是否已经解决, 如果还没有解决的话: