fork download
  1. #include <stdio.h>
  2.  
  3. int function(int a){
  4. int r=0,i;
  5. for(i=0;i<=a-1;i++){
  6. r = r*r + 1;
  7. }
  8. return r;
  9.  
  10. }
  11.  
  12. int main(void) {
  13. int i = 1;
  14. for(i;i<=6;i++){
  15. printf("%d\n",function(i));
  16. }
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
1
2
5
26
677
458330