fork download
  1. #include <stdio.h>
  2.  
  3. int power(int a, int b){
  4. int c = 1;
  5. while (b-- > 0)
  6. c *= a;
  7.  
  8. return c;
  9. }
  10.  
  11. int main(void) {
  12. int x,n,y;
  13. x = 57;
  14. n = 466;
  15. y = power(x,n);
  16. printf("%d の %d 乗は %d",x,n,y);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
57 の 466 乗は 96944177