Q9 A positive integer is entered through the keyboard, write a program to obtain the prime factors of the number. Modify the function suitably to obtain the prime factors recursively.
Program: 130
A positive integer is entered through the keyboard, write a program to obtain the prime factors of the number. Modify the function suitably to obtain the prime factors recursively.
How to use recursion to get the prime factors of a positive integer.
Output:
Enter an integer: 12 The Prime Factors of 12 are: 2, 2, 3,