这是求最大公约数和最小公倍数的程序, 用辗转相减法
开始x = 242, y = 44, z = 242*44
然后do循环直到x=y结束,
循环中判断x>y,则x=x-y = 242-44=198
198>44, x = x-y = 198-44=154
154>44, x = x-y = 154-44=110
110>44, x = x-y = 110-44=66
66>44, x = x-y = 66-44=22
22<44, y = y-x = 44-22=22
x=y循环结束
所以此时x = 22, y = 22, z = 242*44
所以输出x是最大公约数,z/x是最小公倍数
输出:22 484