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