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
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:
is a cool number because its proper positive divisors are and totaling divisors, which is even.
is not a cool number because its proper positive divisors are and totaling divisors, which is not even.
Sample InputOutput
Enter a number:
is a cool number
Sample InputOutput
Enter a number:
is not a cool number
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
