Answers for "develop an algorithm that prints 2 numbers so that one is a multiple of the other"

0

develop an algorithm that prints 2 numbers so that one is a multiple of the other

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.
Posted by: Guest on November-24-2020

Code answers related to "develop an algorithm that prints 2 numbers so that one is a multiple of the other"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language