21 lines
271 B
C
21 lines
271 B
C
int coordonerX(int SourisX){
|
|
int x = 0, z = 0;
|
|
for(z = 50; z <= 500; z += 50){
|
|
if(SourisX > z){
|
|
x = z + 5;
|
|
}
|
|
}
|
|
return x;
|
|
}
|
|
|
|
|
|
int coordonerY(int SourisY){
|
|
int x = 0, z = 0;
|
|
for(z = 100; z <= 550; z += 50){
|
|
if(SourisY > z){
|
|
x = z + 5;
|
|
}
|
|
}
|
|
return x;
|
|
}
|