解题思路:
注意事项:
参考代码:
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { double x,a,b,c,d; cin>>x>>a>>b>>c>>d; cout<<fixed<<setprecision(7)<<(a*(pow(x,3))+b*(pow(x,2))+c*(pow(x,1))+d)<<endl; return 0; }
0.0分
0 人评分
C语言训练-阶乘和数* (C++代码)(直接输出样例hhhh)浏览:1158 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:785 |
C二级辅导-统计字符 (C语言代码)浏览:744 |
点我有惊喜!你懂得!浏览:2072 |
C语言训练-数字母 (C语言代码)浏览:585 |
蛇行矩阵 (C语言代码)浏览:752 |
C语言程序设计教程(第三版)课后习题6.8 (C++代码)浏览:591 |
C二级辅导-进制转换 (C语言代码)浏览:660 |
C二级辅导-等差数列 (C语言代码)浏览:695 |
C二级辅导-同因查找 (C语言代码)浏览:568 |