+ bis 6
- bis 6
+ oder - bis 6
+ wie viel bis 6
- wie viel bis 6
+ oder - wie viel bis 6
   
  Zurück zur Übersicht
© 2004 JR & MM
Wir rechnen WENIGER!"; $txt["+"]="
Wir rechnen UND!
"; $art=substr($art,0,1); $size=strlen(strval($max)); if (!eregi("[\+\-z]",$art)) { echo "$art: Keine gültige Rechenart! +,- oder z (zufällig)!
"; exit; } if ($art=="z") { $art=$op[zufall(0,1)]; } $operand[3]=zufall($min,$max); if ($art=="-") { $ug=$operand[3]; $og=$max; } else { $og=$operand[3]; $ug=$min; } $operand[1]=zufall($ug,$og); eval($eval[$art]); echo $txt[$art]."
"; if ($durchgang<15) { echo "
"; $i=1; for ($i;$i<=3;$i++) { if ($i==$faktor) { echo ""; } else { echo $operand[$i]; } if ($i==1) { echo " $art "; } if ($i==2) { echo " = "; } } echo "

"; echo ""; echo ""; echo ""; echo ""; echo "
"; } //echo $operand[1].$art.$operand[2]."=".$operand[0]."
"; } function zufall($min,$max) { mt_srand((float)microtime()*100000); return mt_rand($min,$max); } function send_head($title) { echo ""; echo ""; echo ""; echo "$title"; echo ""; echo ""; } function send_foot() { echo ""; echo ""; } function draw_points($smiles,$shames) { echo ""; echo ""; $i=0; for ($i;$i<$smiles;$i++) { echo ""; } echo ""; $i=0; for ($i;$i<$shames;$i++) { echo ""; } echo ""; echo "
"; } ?>