fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x , a;
  5. scanf("%d",&x);
  6. printf("入力された整数は%dです\n",x);
  7.  
  8. a=x*x*x;
  9.  
  10. printf("xの3乗は%dです",a);
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5304KB
stdin
10
stdout
入力された整数は10です
xの3乗は1000です