היוצר:code_blue <html> <head> </head> <body> <?php for ($a=0 ; $a<=110 ; $a++) { $meot_t1 =($a/100); $meot_t2 =explode('.',$meot_t1); $meot=$meot_t2[0];$asarot_t1=($a/10); $asarot_t2=explode('.',$asarot_t1); $asarot_t3=$asarot_t2['0']; $asarot_t4=($asarot_t3/10); $asarot_t5=explode('.',$asarot_t5); $asarot_t6=$asarot_t2['1']; $asarot_t7=$asarot_t2['0']; $ahadot_t1=($asarot_t7/10); $ahadot_t2=explode('.',$ahadot_t1); $ahadot_t3=$ahadot_t2['1']; if ($meot == '1') $co++; if ($ahadot_t3 == '1') $co++; if ($asarot_t6 =='1') $co++; echo "$a -> meot $meot -> asarot $ahadot_t3 ->ahadot $asarot_t6<br>"; } echo "the 1 number shows $co times from 0 to 110"; ?> </body> </html>
|