Question: Write a C program that: Prompts the user to enter a positive integer ( > 0 ) Using a recursive function named print _ factors,
Write a C program that:
Prompts the user to enter a positive integer
Using a recursive function named printfactors, finds and prints all factors of the provided integer in descending order, one per line
Use modulo math: means is a factor of and means is not
If value to be factored is don't output any factors
Your recursive function must be in its own separate library h header file named factor.h and associated c source code file
Your header file must have an inclusion guard.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
