Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int start_x = 100;
- int end_x = 120;
- if(start_x > end_x){
- int buffer_x = start_x;
- start_x = end_x;
- end_x = buffer_x;
- }
- int start_y = 30;
- int end_y = 90;
- if(start_y > end_y){
- int buffer_y = start_y;
- start_y = end_y;
- end_y = buffer_y;
- }
- for(int x = start_x; x <= end_x; x++){
- for(int y = start_y; y <= end_y; y++){
- sender.sendMessage("Current coordinate: X=" + x + " Y=" + y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement