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