fork download
  1. #include <stdio.h>
  2. int square(int x){
  3. return x*x;
  4. }
  5. int main(void) {
  6. // your code goes here
  7. int a,b;
  8. scanf("%d",&a);
  9. b=square(a);
  10. printf("%dの二乗は%d",a,b);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5280KB
stdin
4
stdout
4の二乗は16