Write a recursive function that finds all the factors of a given number. A factor is a number less than the given number that divides the number with remainder zero. The program should use a function to test if the a number is divisible by another number. Test your function with at least 10 numbers and tabulate the results in a program.

icon
Related questions
Question

in c++

Write a recursive function that finds all the factors of a given number. A
factor is a number less than the given number that divides the number with
remainder zero. The program should use a function to test if the a number
is divisible by another number. Test your function with at least 10 numbers
and tabulate the results in a program.
Transcribed Image Text:Write a recursive function that finds all the factors of a given number. A factor is a number less than the given number that divides the number with remainder zero. The program should use a function to test if the a number is divisible by another number. Test your function with at least 10 numbers and tabulate the results in a program.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer