fork download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. int pow(int x, int y)
  5. {
  6. int tmp=x, i=1;
  7. for(i;i<y;++i) tmp*=x;
  8. return tmp;
  9. }
  10.  
  11. int main()
  12. {
  13. int a = pow(3, 3);
  14. int b = pow(2, 10);
  15. int c = pow(2, 3);
  16. printf("%d\t%d\t%d", a, b, c);
  17. return 0;
  18. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
27	1024	8