Program to determine whether a given number is a Deficient numberThe deficient number can be defined as the number for which the sum of the proper divisors is lesser than the number itself. For example, the number 21 with its proper divisors (1, 3 and 7) has sum (11) lesser than itself. AlgorithmMAIN
Def(n)
divsum(n)
Java ProgramOutput: Enter the number? 23 The number is deficient. C ProgramOutput: Enter the number? 21 The number is deficient. Python ProgramOutput: Enter the number? 45 The number is deficient. C# ProgramOutput: Enter the number? 45 The number is deficient. PHP ProgramOutput: Enter the number? 45 The number is deficient. Next Topic# |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India