Algebra
One Step Fraction Mult Integer Ans
«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»§nbsp;«/mo»«mo»§nbsp;«/mo»«/math»#expr=#c
x={#1}
]]>
1
0
0
0
«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»§nbsp;«/mo»«mo»§nbsp;«/mo»«/math»#expr=#c
x={:SHORTANSWER:=\#d}
]]>
«session lang=¨en¨ version=¨2.0¨»«library closed=¨false¨»«mi style=¨color:#ffc800¨»variables«/mi»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»a«/mi»«mo»=«/mo»«mi»random«/mi»«mo»(«/mo»«mo»{«/mo»«mi»random«/mi»«mo»(«/mo»«mo»-«/mo»«mn»12«/mn»«mo».«/mo»«mo».«/mo»«mo»-«/mo»«mn»1«/mn»«mo»)«/mo»«mo»,«/mo»«mi»random«/mi»«mo»(«/mo»«mn»2«/mn»«mo».«/mo»«mo».«/mo»«mn»12«/mn»«mo»)«/mo»«mo»}«/mo»«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¨»if«/csymbol»«mrow»«mi»b«/mi»«mo»§ne;«/mo»«mn»0«/mn»«mo»§and;«/mo»«mi»b«/mi»«mo»§ne;«/mo»«mn»1«/mn»«mo»§and;«/mo»«mi»b«/mi»«mo»§ne;«/mo»«mo»-«/mo»«mn»1«/mn»«mo»§and;«/mo»«mi»b«/mi»«mo»§ne;«/mo»«mi»a«/mi»«/mrow»«mrow»«mi»b«/mi»«mo»=«/mo»«mi»random«/mi»«mo»(«/mo»«mo»-«/mo»«mn»20«/mn»«mo».«/mo»«mo».«/mo»«mn»20«/mn»«mo»)«/mo»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»a«/mi»«mo»§ne;«/mo»«mo»-«/mo»«mn»1«/mn»«/mrow»«mrow»«mi»expr«/mi»«mo»=«/mo»«mi»string_substitution«/mi»«mo»(«/mo»«mo»§quot;«/mo»«mfrac»«mrow»«mo»#«/mo»«mn»1«/mn»«mi»x«/mi»«/mrow»«mrow»«mo»#«/mo»«mn»2«/mn»«/mrow»«/mfrac»«mo»§quot;«/mo»«mo»,«/mo»«mi»a«/mi»«mo»,«/mo»«mi»b«/mi»«mo»)«/mo»«/mrow»«mrow»«mi»expr«/mi»«mo»=«/mo»«mi»string_substitution«/mi»«mo»(«/mo»«mo»§quot;«/mo»«mfrac»«mrow»«mo»-«/mo»«mi»x«/mi»«/mrow»«mrow»«mo»#«/mo»«mn»1«/mn»«/mrow»«/mfrac»«mo»§quot;«/mo»«mo»,«/mo»«mi»b«/mi»«mo»)«/mo»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»repeat«/csymbol»«mrow»«mi»c«/mi»«mo»=«/mo»«mi»random«/mi»«mo»(«/mo»«mo»{«/mo»«mi»random«/mi»«mo»(«/mo»«mo»-«/mo»«mn»40«/mn»«mo».«/mo»«mo».«/mo»«mo»-«/mo»«mn»1«/mn»«mo»)«/mo»«mo»,«/mo»«mi»random«/mi»«mo»(«/mo»«mn»2«/mn»«mo».«/mo»«mo».«/mo»«mn»40«/mn»«mo»)«/mo»«mo»}«/mo»«mo»)«/mo»«/mrow»«mrow»«mfrac»«mrow»«mi»c«/mi»«mo»*«/mo»«mi»b«/mi»«/mrow»«mi»a«/mi»«/mfrac»«mo»§isin;«/mo»«integers/»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»d«/mi»«mo»=«/mo»«mfrac»«mrow»«mi»c«/mi»«mo»*«/mo»«mi»b«/mi»«/mrow»«mi»a«/mi»«/mfrac»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»