fork download
  1. #include <stdio.h>
  2.  
  3. int square(int x){
  4. return x*x;
  5. }
  6. int main(void) {
  7. int a, b;
  8. a = 5;
  9. //練習問題B:ここから
  10. b = square(a);
  11. printf("%dの2乗は%d",a,b);
  12. //ここまでを完成させてください
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
5の2乗は25