Solved Problem #CPP#2016
Back
Problem Statement - Print all divisors and count of divisors
Write a c++ program to ask an integer number from the user and then print all its divisors in one line, followed by the count of divisors. The output should be as per example given below.
Enter an integer :45
The divisors of 45 are –
1 3 5 9 15 45
The count of divisors = 6
