Foto: https://flic.kr/p/sUJ9TM
Estaba fácil y no tuve ningún problema en hacerlo. Aquí esta el link de mi código:
https://github.com/BrayanGc/Codigos/blob/master/GCD.cpp
#WSQ12 by brayangc is licensed under a Creative Commons Attribution 4.0 International License.