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