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