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