Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int xm=0, ym=0;
- int calculeMilieu(int xa, int ya, int xb, int yb, int *xm, int *ym)
- {
- int xa, ya, xb, yb;
- *xm=(xa+xb)/2;
- *ym=(ya+yb)/2;
- if (*xm==0 && *ym==0)
- return 2;
- else
- if (*xm==0 || *ym==0)
- return 1;
- else
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement