Batxillerat/Probabilitat
Un dau, p(nombre o nombre)
(escriviu el resultat arrodonit amb dos decimals)]]>
1
0.5
0
0
0
#p
«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»tolerància_relativa«/mi»«mo»(«/mo»«mi»fals«/mi»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»tolerància«/mi»«mo»(«/mo»«mn»0«/mn»«mo».«/mo»«mn»005«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»t«/mi»«mo»=«/mo»«mo»[«/mo»«mn»4«/mn»«mo»,«/mo»«mn»6«/mn»«mo»,«/mo»«mn»8«/mn»«mo»,«/mo»«mn»12«/mn»«mo»,«/mo»«mn»20«/mn»«mo»]«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»i«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»1«/mn»«mo».«/mo»«mo».«/mo»«mn»5«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»c«/mi»«mo»=«/mo»«msub»«mi»t«/mi»«mi»i«/mi»«/msub»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n1«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»1«/mn»«mo».«/mo»«mo».«/mo»«mi»c«/mi»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n2«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»1«/mn»«mo».«/mo»«mo».«/mo»«mi»c«/mi»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»while«/csymbol»«mrow»«mi»n1«/mi»«mo»==«/mo»«mi»n2«/mi»«/mrow»«mrow»«mi»n2«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»1«/mn»«mo».«/mo»«mo».«/mo»«mi»c«/mi»«mo»)«/mo»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»p«/mi»«mo»=«/mo»«mn»2«/mn»«mo»/«/mo»«mi»c«/mi»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»t«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mfenced close=¨]¨ open=¨[¨»«mrow»«mn»4«/mn»«mo»,«/mo»«mn»6«/mn»«mo»,«/mo»«mn»8«/mn»«mo»,«/mo»«mn»12«/mn»«mo»,«/mo»«mn»20«/mn»«/mrow»«/mfenced»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»i«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»5«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»c«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»20«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»p«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mfrac»«mn»1«/mn»«mn»10«/mn»«/mfrac»«/math»«/output»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»