fork download
  1. #include <stdio.h>
  2. int hoge(int a){
  3. if(2<=a){
  4. int x=hoge(a-1);
  5. return x*x*hoge(a-2);
  6. }
  7. else{
  8. return 2;
  9. }
  10. }
  11.  
  12. int main(void) {
  13. int x=hoge(3);
  14. printf("%d",x);
  15.  
  16. return 0;
  17. }
  18.  
  19.  
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
128