Jump to content

Proper divisors: Difference between revisions

m
Line 180:
 
=={{header|Ada}}==
The first part of the task is to ''create a routine to generate a list of the proper divisors''. To ease the re-use of this routine for other tasks, wesuch defineas itthe as''Abundant, aDeficient functionand ofPerfect aNumber genericClassification'' package:
[[http://rosettacode.org/wiki/Abundant,_deficient_and_perfect_number_classifications#Ada]] and the ''Amicable Pairs''
[[http://rosettacode.org/wiki/Amicable_pairs#Ada]], we define this routine as a function of a generic package:
 
<lang Ada>generic
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.