Driver code
static public void Main ( ) { int n = 16 ; Console . Write ( " Total ▁ perfect ▁ " + " divisors ▁ of ▁ " + n ) ; Console . WriteLine ( " ▁ = ▁ " + countPerfectDivisors ( n ) ) ; n = 12 ; Console . Write ( " Total ▁ perfect ▁ " + " divisors ▁ of ▁ " + n ) ; Console . WriteLine ( " ▁ = ▁ " + countPerfectDivisors ( n ) ) ; } }