$script_name=$_SERVER["SCRIPT_NAME"]; @$numer=$_SERVER['QUERY_STRING']; if($numer) { $numer%=729; //echo "$numer -> "; echo "
"; for($n=$numer, $found=0; $n>0; $n=($n-$i)/3){ $i=$n%3; echo ($i==1) ? "
" : "
"; if(!$found++){ //$music_file= ($i==1) ? "Windows Print complete.wav" : "recycle.wav"; //echo "
"; echo "
"; } } echo "
"; } echo "
"; $case=rand(1,2); /* 1 - poprawne; 2 - niepoprawne */ $tak=3*$numer+$case; $nie=3*$numer+(3-$case); ////////////////////////////// $n=rand(2,5); $m=$n+1; if($case==1) {$zadanie="\( x \cdot $n x = $n x^2 \)";} else {//typowe bledy $temp=rand(1,3); if($temp==1)$zadanie="\( x \cdot $n x = $m x \)"; if($temp==2)$zadanie="\( x \cdot $n x = $n x \)"; if($temp==3)$zadanie="\( x \cdot $n x = $n x^3 \)"; } ////////////////////////////// $zadanie="
Czy
$zadanie
??
"; echo "
$zadanie"; $tak+=rand(14,26)*729; $nie+=rand(28,40)*729; echo "
"; ?>