Hello, I want to write a function that shows all factors of an integer, ive only been able to display prime numbers but i want all factors to show. Any help is appreciated.
Printable View
Hello, I want to write a function that shows all factors of an integer, ive only been able to display prime numbers but i want all factors to show. Any help is appreciated.
What algorithm did you use to display all its prime factors? Chances are, you only need to tweak it.
prime(int num)
That is not an algorithm.