Понять код с++
#include
#include
using namespace std;
void main()
{
const float e = 0.1, pi = 3.14;
float x, s, pr;
int n = 1;
cout< < "input x: ";
cin> > x;
pr = x;
do{
s = pow(x, 2) / (pow(n, 2) * pow(pi, 2));
pr *= (1-s);
n++;
} while (fabs(s) > e);
cout< < "result 1 = "< < sin(x) < cout< < "result 2 = "< cout< < "iter = "< < n < system("pause");
}
ответ:#include <iostream>
#include <stdio.h>
using namespace std;
float f(int x) {
return pow(x, 2);
}