blob: 35e196d72e7304363fde2be8d12be58a17796be0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
////
//Variable Declaration
fi = 1 //Probability of receiving any card
n = 52 //Number od Cards
//Calculations
sum = 0
for i = 1:52
sum = sum + fi
end
Pxi = (fi/sum)
//Results
printf("\n Probability of receiving any card is %f', Pxi)
|