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