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