Sırası ile bütün soruların cevapları...
<?
for($temp=0, $i=0; $i < 10; $i++):
$temp++;
for($x=0; $x < $temp; $x++)echo 'X';
echo '<br>';
endfor;
?>
function en_buyuk(){
$temp=0;
$args=func_get_args();
$en_buyuk;
for ($i = 0; $i < func_num_args(); $i++)
{
if($args[$i]>$temp)
$temp=$en_buyuk=$args[$i];
}
return $en_buyuk;
}
echo en_buyuk(232,123,3434);for ($i = 0; $i <= 20 ; $i=$i+2)
{
echo $i.'^2 = '.$i*$i."<br>";
}$temp=0;
for ($i = 0; $i <= 1000 ; $i++)
{
if ($i%5 == 0 or $i%7 == 0)
{
$temp=$temp+$i;
}
}
echo $temp;$temp=0;
for ($i = 0; $i <= 10 ; $i++)
{
$temp+=$i;
echo $i.($i<>10 ? '+' : '=');
}
echo $temp;