编写一个程序,输入x的值,输出函数y=5x^5+2x^4+3x^3+2x^2+x
答案:2 悬赏:80 手机版
解决时间 2021-04-03 04:24
- 提问者网友:川水往事
- 2021-04-02 07:44
编写一个程序,输入x的值,输出函数y=5x^5+2x^4+3x^3+2x^2+x
最佳答案
- 五星知识达人网友:猎心人
- 2021-04-02 08:49
input x
y=5x^5+2x^4+3x^3+2x^2+x
prin y
y=5x^5+2x^4+3x^3+2x^2+x
prin y
全部回答
- 1楼网友:空山清雨
- 2021-04-02 09:58
#include
#include
int main(int argc, char *argv[])
{
int x,y;
while(scanf("%d",&x) == 1)
{
y = 5 * pow(x,5) + 2 * pow(x,4) + 3 * pow(x,3) + 2 * pow(x,2) + x;
printf("%d\n",y);
}
return 0;
}
#include
int main(int argc, char *argv[])
{
int x,y;
while(scanf("%d",&x) == 1)
{
y = 5 * pow(x,5) + 2 * pow(x,4) + 3 * pow(x,3) + 2 * pow(x,2) + x;
printf("%d\n",y);
}
return 0;
}
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯