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. int main(void) {
  12. int x=hoge(3);
  13. printf("%d",x);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
128