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