driver program
let n = 10 ; let k = 5 ; let p = 1.0 / 3 ; let probability = binomialProbability ( n , k , p ) ; document . write ( " " + k ) ; document . write ( " " + n ) ; document . write ( " " + p ) ; document . write ( " " + probability ) ;