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 a;
  10. a=-3;
  11. printf("%d^4=%d\n",a,square(a)*square(a));
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5264KB
stdin
Standard input is empty
stdout
-3^4=81