1 2 3 4 5 6 7 8 9 10
////Varible declaration Prob = 0 for x = 1:51 Prob = 1/(x) + Prob end Prob1=1.0 //Results printf("\n Probability of picking up any one ball is %3.1f",Prob1)