Soru 7 ( 10 haneli sayılara geçtiğinde bölünebilse bile bölünemiyor diyor onun nedenini bilenler yazarsa sevinirim)
<html>
<head>
<title>2 ile tam bölünebilme</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<body>
<form action="" method="post" id="soru7" /><br /><br />
<input type="text" name="bolunen" id="bolunen" /> Bölünecek sayıyı girin<br /><br />
<input type="submit" name="submit" value="Sorgula" />
</form>
<?php
if($_POST) {
$bolunen = $_POST['bolunen'];
$bolen = "2";
print($bolunen/$bolen);
echo "<br /><br />";
print($bolunen%$bolen);
echo "<br /><br />";
if($bolunen % $bolen === 0) { echo "2 ile tam bölünüyor"; } else { echo "2 ile tam bölünemiyor"; } }
?>
</body>
</html>
posttan gelen sayıyı number_format() içine alın.
$bolunen = number_format($_POST['bolunen']);