fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x,y,e = 1,i;
  5. scanf("%d,%d",&x,&y);
  6.  
  7. for(i = 0;i < y;i ++){
  8. e *= x;
  9. }
  10.  
  11. printf("%d",e);
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5288KB
stdin
2,4
stdout
16