Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int xm=0, ym=0;
  5. int calculeMilieu(int xa, int ya, int xb, int yb, int *xm, int *ym)
  6. {
  7. int xa, ya, xb, yb;
  8. *xm=(xa+xb)/2;
  9. *ym=(ya+yb)/2;
  10. if (*xm==0 && *ym==0)
  11. return 2;
  12. else
  13. if (*xm==0 || *ym==0)
  14. return 1;
  15. else
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement