fork download
  1. #include <stdio.h>
  2. int main() {
  3. int a,b,c,i;
  4. c=1;
  5. a=3;
  6. b=2;
  7. for(i=0;i<b;i++){
  8. c=c*a;
  9. }
  10. printf("%d\n",c);
  11.  
  12.  
  13.  
  14.  
  15. // こちらに作成
  16. return 0;
  17.  
  18. }
Success #stdin #stdout 0s 5320KB
stdin
3
2
stdout
9