📌  相关文章
📜  如果其中一个数字是另一个数字的倍数则打印的算法 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:35.630000             🧑  作者: Mango

代码示例1
You can simply use % Modulus operator to check divisibility.
For example: n % 2 == 0 means n is exactly divisible by 2 and n % 2 != 0 means n is not exactly divisible by 2.