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

Me
Me
WhatsApp Contact Me on WhatsApp
×

📩 Today’s Programming Tip

✅ Flutter/Dart Tip: Use MediaQuery for responsive layout sizing.
Example:
var screenWidth = MediaQuery.of(context).size.width;

🔗 Learn More

💡 Tip of the Day