fork download
  1. #include <stdio.h>
  2.  
  3. int square(int x){
  4. return x *x;
  5. }
  6.  
  7. int main(void) {
  8. int a, b;
  9. a = 5;
  10. b = square(a);
  11. printf("%d の二乗は %d\n", a, b);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
5 の二乗は 25