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. }
  7. for(i=0;i<y;i++){
  8. xy*=x;
  9. }
  10. return xy+fuga(x,y-1);
  11. }
  12. int main(void) {
  13. // your code goes here
  14. printf("%d",fuga(2,3));
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
15