fork download
  1. #include <stdio.h>
  2.  
  3. int hoge(int n){
  4. if(10000<n){
  5. return 1;
  6. }else{
  7. printf("%d ",n);
  8. return hoge(n*n);
  9. }
  10. }
  11. int main(void) {
  12. printf("%d ",hoge(3));
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
3 9 81 6561 1