69,382
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <math.h> //需要包含此头文件
int main(){
double c;
c = pow(4.0,5.0);
printf("4^5=%f",c);
return 0;
}
#include <stdio.h>
#include <math.h>//需要包含此头文件
int main(){
double c;
c = pow(4.0,5.0);
printf("4^5=%f",c);
return 0;
}
#include<iostream>
#include <cmath>
using namespace std;
int main()
{
double n=5;
cout<<pow(n,2)<<endl; //平方
cout<<pow(n,3)<<endl; //立方
return 0;
}