Mateja
(Mateja)
May 14, 2020, 6:17pm
#1
Each small square is 30x30, and a big one is 90x90.
The program should ask for x and y coordinates and the program should return three numbers. The first one the square x is in, the second y, and the third the big square they are both in.

Examples:

```
function(128,230) => (8 5 8)
function(180,180) => (6 6 5)
function(181,181) => (7 7 9)
```

Sorry, kinda forgot that I had to write today’s DC.

Have fun!

3 Likes

Yoshi
(KidKoder)
May 14, 2020, 6:32pm
#3
First, I do not understand the thing with the different squares.

Aand also, what happens if it is on a corner, like

Any rules? Elaborate please.

I just don’t understand how come 128 will be x

Yoshi
(KidKoder)
May 15, 2020, 2:30am
#7
Just an example input number .

I know it is a input number, but is the x coordinate the phone coordinate?

Yoshi
(KidKoder)
May 15, 2020, 2:33am
#9

WatermelonIce:

phone coordinate?

Ummm no. I think you have to look at it again. The image is the point.

OHHH i finally understand. I thought small squares mean the 3x3 square before lol

1 Like