fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5. int n=4;
  6. double a[n];
  7. a[0]=0;
  8. a[1]=0;
  9. a[2]=1.5;
  10. for(int i=3;i<n;i++)
  11. {
  12. a[i]=((i+1)/(pow(i,2)+1))*a[i-1]-(a[i-2]*a[i-3]);
  13. }
  14. printf("Твое число : %f\n",a[n-1]);
  15. return 0;
  16. }
Success #stdin #stdout 0s 4548KB
stdin
Standard input is empty
stdout
Твое число : 0.600000