fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int f[30],i;
  5. f[0]=2; f[1]=-1;
  6. for(i=2;i<30;i++){
  7.  
  8. f[i]=f[i-1]-f[i-2]+2;
  9. }
  10.  
  11. printf("%d ",f[i]);
  12. printf("\n");
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
-2064811520