fork download
  1. #include <stdio.h>
  2.  
  3. int abs(int x){
  4. return (x>0)?x:-x;
  5. }
  6.  
  7. int sqare(int x){
  8. return x*x;
  9. }
  10.  
  11.  
  12.  
  13. int main (void){
  14. int a,b;
  15. a=2;
  16. b=6;
  17. printf("この二つの数の差は%d",abs(sqare(a)-sqare(b)));
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
この二つの数の差は32