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