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