Сделать блок схему по этому коду
#include "stdio.h" //" " заменить на < >
#include "math.h" //" " заменить на < >

const int n = 15;
float a[n + 1];
float e;
int m;
float x;
float a;
float b;
float y;
float yp;
char ex = 'n';

int main()
{
printf("e=");
scanf_s("%f", & e);

printf("m=");
scanf_s("%d", & m);

for (int i = 1; i < = n; i++)
{
printf("a[%d]=", i);
scanf_s("%f", & a[i]);
}

for (int i = 1; i < = n; i++)
{
a = 1;
b = 4;
y = 1;
x = 1;

if (m ! = 1)
for (int j = 2; j < = m; j++)
{
x *= a[i];
y += (a / b) * x;
if (fabs(y - yp) < = e)
break;
yp = y;
a *= a + 4;
b *= b + 4;
}
printf("y(%f)=%f\n", a[i], y);
}

return 0;
}

Filipskaya20 Filipskaya20    3   04.10.2019 21:43    1

Другие вопросы по теме Информатика