Driver Code
public static void Main ( String [ ] args ) { int N = 5 ; int [ ] arr = { 1 , 2 , 3 } ; int K = arr . Length ; Console . WriteLine ( String . Format ( " { 0 : F10 } " , averageSetBits ( N , K , arr ) ) ) ; } }