令 a=10, b=20, c=30 ,d=40, e=a*b ,f=c/d, g=e^f ,输出g,这个怎么用c++编代码
时间: 2023-05-11 21:07:14 浏览: 68
Visual-CPP-Version,c语言uuid源码,c语言
#include <stdio.h>
#include <math.h>
int main() {
int a = 10, b = 20, c = 30, d = 40;
double e = a * b;
double f = c / (double)d;
double g = pow(e, f);
printf("%lf", g);
return 0;
}
阅读全文