Q5 A positive integer is entered through the keyboard. Write a function to obtain the prime factor of this number. For example, prime factors of 24 are 2, 2, 2 and 3, whereas prime factors of 35 are 5 and 7.
Program: 126
A positive integer is entered through the keyboard. Write a function to obtain the prime factor of this number.
For example, prime factors of 24 are 2, 2, 2 and 3, whereas prime factors of 35 are 5 and 7.
Output:
Enter an integer: 36 2, 2, 3, 3,