Example program, creates a binomial distribution table.


Enter the probability of success (π): 
.45
Enter the number of trials (n): 
10
Enter the number of successes (x): 
10
------------------------------
#              Combination    π^x            (1-π^n-x)      Binomial Prob. 
0              1              1              0.0025329516   0.0025329516   
1              10             0.4500000000   0.0046053665   0.0207241496   
2              45             0.2025000000   0.0083733937   0.0763025509   
3              120            0.0911250000   0.0152243523   0.1664782928   
4              210            0.0410062500   0.0276806406   0.2383666466   
5              252            0.0184528125   0.0503284375   0.2340327075   
6              210            0.0083037656   0.0915062500   0.1595677551   
7              120            0.0037366945   0.1663750000   0.0746031063   
8              45             0.0016815125   0.3025000000   0.0228895894   
9              10             0.0007566806   0.5500000000   0.0041617435   
10             1              0.0003405062   1              0.0003405062   
------------------------------
Sum Binomial: 1.0000000000
Standard Deviation: 1.5732132722
Mean: 4.5