Question: Exercise 2 Develop a program to check whether a given number is cool or not. A cool number is a number in which the count

Exercise 2
Develop a program to check whether a given number is cool or not.
A cool number is a number in which the count of its proper positive divisors including the number itself is even. For example:
8 is a cool number because its proper positive divisors are 1,2,4, and 8, totaling 4 divisors, which is even.
9 is not a cool number because its proper positive divisors are 1,3, and 9, totaling 3 divisors, which is not even.
Sample Input/Output 1
Enter a number: 8
8 is a cool number
Sample Input/Output 2
Enter a number: 9
9 is not a cool number
Exercise 2 Develop a program to check whether a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!