Question: Write a function, printdivisors, that takes a single integer parameter and prints all the numbers less that the parameter that are divisors of the parameter
Write a function, printdivisors, that takes a single integer parameter and prints all the numbers less that the parameter that are divisors of the parameter (i.e. divides it without a remainder) including 1. So printdivisors(6) will print 1,2,3. Note you may use a wrapper function or default parameters.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
