Questions Day 5

1. Write a program to find the smallest divisor of a number. Give 1 if it is prime.

2. Write a program to find all the exact divisors of a number.
3.Write a program to find the smallest number with n exact divisors.  For example 6 is the smallest number with  4 divisors = 1,2,3,6.
4. Find the number with most factors in the range 1 to 100.
5. Find the largest factor less than or equal to the square root of a number.


Contact us for software training, education or development










 

Post a Comment

0 Comments