Write a program to find factor of any Number in c++
Factors of any number are those numbers that are multiplied to get a number. For example: 6 and 3 are factors of 18 as 6*3=18. Similarly other factors of 15 are 1 and 18 as 18*1=18.
Example :
Output :
Enter any Positive Integer: 12 Factors of 12 are: 1 2 3 4 6 12