Ana Sayfa Community

Community

Please or Kayıt ol to create posts and topics.

Formdan girilen sayının pozitif ,negatif veya 0’a eşit olup olmadığını bulan php kodları

<?

$sayi=$_POST[“sayi”];

if($sayi>0) { echo “Sayi Pozitiftir”;} 

elseif($sayi<0) { echo “Sayi Negatiftir”;}

else {
echo “Sayi Sıfırdır”;}
//5P

?>