Location Coordinates

Published by Mubashir Hassan in

Mubashir is lost somewhere in the desert. Given a class named Mubashir with a method named coordinates, return the coordinates of his location.

Examples

Mubashir mubashir(1, 2, 3);
mubashir -> coordinates(x, y, z)
// Should assign x = 1, y = 2, z = 3

Mubashir mubashir(125, 41, 381);
mubashir -> coordinates(x, y, z)
// Should assign x = 125, y = 41, z = 381

Notes

N/A

Watch a quick demo on how Edabit works.