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