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