X and y coordinates

How to find the exact location of x and y coordinates without executing the program first?