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