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