C Numbers 04: Check if number is a Deficient number [C Programming]

preview_player
Показать описание
Write a program in C to check whether a given number is Deficient or not.

Expected Output :
Input an integer number : 15
The number is Deficient.

===================================================

What is a deficient number?

A deficient number is a positive number that is greater than the sum of all positive integers that are submultiples of it.

Proper divisors of 14 :
1, 2, 7
14 IS A DEFICIENT NUMBER

Proper divisors of 18 :
1, 2, 3, 6, 9
18 IS NOT A DEFICIENT NUMBER

Proper divisors of 20 :
1, 2, 4, 5, 10
20 IS NOT A DEFICIENT NUMBER

=================================================

Рекомендации по теме
welcome to shbcf.ru