\title{Cálculo decimal}
\language{es}
\range{-5..5}
\author{Guerimand Fabrice}
\email{fwguerima@free.fr}
\computeanswer{no}
\format{html}
\precision{10}

\integer{a1=random(1..10)}
\integer{b1=random(1..10)}
\integer{a2=random(0..10)}
\integer{b2=random(0..10)}
\text{a=\a2=0?\a1:\a1.\a2}
\text{b=\b2=0?\b1:\b1.\b2}
\text{e1=random(-\a,\a)}
\text{e2=random(+\b,-\b,-(-\b))}
\text{rep=maxima(\e1\e2;)}
\statement{Calcule \(\e1\e2):}


\answer{Respuesta}{\rep}{type=numexp}

\solution{\if{\e2=-(-\b)}
{\(\e1\e2=\e1+\b=\rep)}
{\(\e1\e2=\rep)}}
