fork download
  1. #include <stdio.h>
  2.  
  3. //引数の二乗を返す関数
  4. int square(int x){
  5. return x*x;
  6. }
  7. //main関数
  8. int main(void) {
  9. int x=4;
  10. printf("%dの四乗の値は%d",x,square(square(x)));
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
4の四乗の値は256