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