Question: Write java codes about following problem, add comments to explain your work. 2 of 3 Probiem 2 - Threshold Friendly Numbers The proper positive divisors
2 of 3 Probiem 2 - Threshold Friendly Numbers The proper positive divisors of an integer number are all the positive divisors excluding the number itself. We will define a "threshold friendly number as those integers for which the sum of their proper positive divisors is greater than a given threshold. Write a program that asks for a threshold value as input and prints every other threshold friendly number in the range [1,100]. For example, if the threshold is 80, then the list of threshold friendly numbers is: 60, 72, 78, 80, 84, 88, 90, 96 and 100. The program should print: 60, 78, 84, 90 and 100. A sample run looks like this: ...Threshold Friendly... Threshold value: 88 68 78 84 98 188 an only enter input whle your programm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
