#include<stdio.h>
int caculator(int x);
int main(void)
{
int x, total;
printf("Please enter a number:");
scanf_s("%d", &x);
total = caculator(x);
printf("%d", total);
return 0;
}
int caculator(int x)
{
return 3 * x * x * x * x * x + 2 * x * x * x * x - 5 * x * x * x - x * x + 7 * x - 6;
}
9---6
最新推荐文章于 2024-10-05 23:29:09 发布