Coordinate Pairs

Problem

Read the x- and y-coordinates of a point and print the coordinate pair.

31. Coordinate pairs, Comet 64
31. Coordinate pairs, Comet 64

Solution

Read the x-coordinate, followed by the y-coordinate. Print the coordinate pair. This solution is optimal, according to the game.

int = input;        // Read the x-coordinate.
reg = input;        // Read the y-coordinate.
output = int, reg;  // Print the point (x, y).

results matching ""

    No results matching ""