What are the factors?
Factors of a number are those numbers you multiply them to get the number. For example: If a number is 6, it's factors will be 2 and 3, if we multiply them, then it will be the number again: 2x3=6.
Given a number, we have to find its all factors.
Example:
Input:
number = 6
Output:
2, 3
Program to find factors of a number in Kotlin
Output
need an explanation for this answer? contact us directly to get an explanation for this answer