Advertisement
Learn coding visually with Programmer's Picnic
Practice coordinates, logic, conditions, loops, and problem solving with beginner-friendly lessons by Champak Roy.
Try:
Since numbering starts from 1, the first point is
x == y
x + y == 6
x > 3 and y < 5
x % 2 == 0 or y % 2 == 0
not (x == y)
x*x + y*y < 25
Since numbering starts from 1, the first point is
(1,1), not (0,0).
Advertisement