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