include stdio include stdlib include math int main void int double sum

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
int i, n;
double sum, x;
printf ("Ââåäèòå x:\n");
scanf("%lf", &x);
sum=sin(x);
for (i=2; i<=n; i++)
if(i%2==0) sum+=cos(sum);
else sum+=sin(sum);
printf("%lf", sum);
system("PAUSE");
return 0;
}