
Zanius
7 год назад
Помогите написать программу си++ очень срочно нужно
вычислить сумму 1+x^2/2+x^3/3+x^19/19
ОТВЕТЫ

Богданович
Aug 12, 2019
#include lt;iostreamgt;
#include lt;stdio.hgt;
#include lt;math.hgt;
using namespace std;
int main()
{
int x,y;
coutlt;lt;"x=";
cingt;gt;x;
y=((1+x^2)/(2+x^3)/(3+x^19)/19);
coutlt;lt;y;
system("pause");
return 0;
}
#include lt;stdio.hgt;
#include lt;math.hgt;
using namespace std;
int main()
{
int x,y;
coutlt;lt;"x=";
cingt;gt;x;
y=((1+x^2)/(2+x^3)/(3+x^19)/19);
coutlt;lt;y;
system("pause");
return 0;
}
179
Смежные вопросы: